You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Dmitry Macsema <le...@amur.ru> on 2003/02/06 03:05:40 UTC

[CLI] RFE: when hasArg() is not specified in option definition...

        ...and when argument for the option is specified at runtime,
        an exception should be thrown.

-- 
Best regards,
 Dmitry                          mailto:ledestin@amur.ru


Re: [CLI] RFE: when hasArg() is not specified in option definition...

Posted by John Keyes <jb...@mac.com>.
Hi Dmitry,

What happens is that the argument is added to the args list of 
the command line so when you call getArgs on the command line
instance you can get at these values i.e. the unrecognised arguments
on the command line.  It could be argued that an error should
be reported here and processing stopped.

-John K

On Thu, 2003-02-06 at 02:05, Dmitry Macsema wrote:
>         ...and when argument for the option is specified at runtime,
>         an exception should be thrown.
-- 
John Keyes <jb...@mac.com>