commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <>
Subject [jira] Commented: (CLI-147) Create page explaining which parser to use when
Date Sun, 01 Jun 2008 19:45:45 GMT


Emmanuel Bourg commented on CLI-147:

Regarding the GnuParser, it processes every token as a potential option. That means it will
split a token if it recognizes an option even if it's actually the mandatory argument of the
previous option.

For example with the option 1 and N both having a mandatory argument, the following command

{code}-N -123{code}

will be interpreted as the option N with no argument, and the option 1 with 23 as argument.
But the right interpretation is N=-123. The token -123 has be processed as a potential option
first before being considered as the argument of the previous option.

> Create page explaining which parser to use when
> -----------------------------------------------
>                 Key: CLI-147
>                 URL:
>             Project: Commons CLI
>          Issue Type: Task
>          Components: Documentation
>    Affects Versions: 1.1
>            Reporter: Henri Yandell
>            Assignee: Henri Yandell
>             Fix For: 1.2
> Basically a short summary of what each parser does.
> Also put each relevant bit in the javadoc.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message