Hi Mike, Thanks for the reporting this issue. I'll have a peek at it when I get a chance.
-John K On Thu, 2002-12-05 at 17:06, Mike Luo wrote: > I've encounted two problems with CLI: > > 1. option with argument cannot be placed in the end of the command line. For > example, > > cli -buildfile connect.xml -debug -emacs -help -logger com.ph.log.Log > > Exception in thread "main" > org.apache.commons.cli.MissingArgumentException: no argument for:logger > at org.apache.commons.cli.Parser.processArgs(Parser.java:239) > at org.apache.commons.cli.Parser.processOption(Parser.java:277) > at org.apache.commons.cli.Parser.parse(Parser.java:170) > at org.apache.commons.cli.Parser.parse(Parser.java:114) > at com.ph.econnection.command.console.Cli.main(Cli.java:158) > > 2. the trailing arguments are not retrievable by CommandLine.getArgs(). For > example, > > cli -buildfile connect.xml -debug -emacs -help a1 a2 a3 > > a1, a2 a3 can not be retrieved by calling CommandLine.getArgs(). > > I'll attach my test program. Pls help. Thanks. > > -Mike > > <<Cli.java>> > > ************************************************************************* > PRIVILEGED AND CONFIDENTIAL: This communication, including attachments, is > for the exclusive use of addressee and may contain proprietary, confidential > and/or privileged information. If you are not the intended recipient, any > use, copying, disclosure, dissemination or distribution is strictly > prohibited. If you are not the intended recipient, please notify the sender > immediately by return e-mail, delete this communication and destroy all > copies. > ************************************************************************* > > ______________________________________________________________________ > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- John Keyes <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
