I haven't looked at the 1.0 code for a while but IIRC the cmdLineSyntax allows you to supply the beginning of the command line that isn't dependant on the options. For example the following usage line can be split into the section independant of options "java -jar myapp.jar" and a section generated from the options "[-?] [--username name]":
java -jar myapp.jar [-?] [--username name] Basically the cmdLineSyntax section should be anything typed in at the commandline before option processing kicks in. Hope that helps, Rob ----- Original Message ----- From: "lawrence casella" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 06, 2003 2:27 PM Subject: CLI HelpFormatter > I have looked in the source code and elsewhere but, with respect to the > HelpFormatter.printHelp(java.lang.String cmdLineSyntax, Options options), I > cannot figure out what the cmdLineSyntax parameter is supposed to be. I > noticed that it throws an exception if one is not included. > > Thanks, > > LJC > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
