You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2008/07/28 10:19:31 UTC

[jira] Created: (CLI-164) PosixParser ignores unrecognized tokens starting with '-'

PosixParser ignores unrecognized tokens starting with '-'
---------------------------------------------------------

                 Key: CLI-164
                 URL: https://issues.apache.org/jira/browse/CLI-164
             Project: Commons CLI
          Issue Type: Bug
          Components: Parser
    Affects Versions: 1.1
            Reporter: Emmanuel Bourg
             Fix For: 1.2


PosixParser doesn't handle properly unrecognized tokens starting with '-' when stopAtNonOption is enabled, the token is simply ignored.

For example, if the option 'a' is defined, the following command line:

{code}-z -a foo{code}

is interpreted as:

{code}-a foo{code}

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


[jira] Reopened: (CLI-164) PosixParser ignores unrecognized tokens starting with '-'

Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLI-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg reopened CLI-164:
--------------------------------

      Assignee: Emmanuel Bourg

Actually, the option is ignored even if stopAtNonOption is disabled, no exception is thrown.

> PosixParser ignores unrecognized tokens starting with '-'
> ---------------------------------------------------------
>
>                 Key: CLI-164
>                 URL: https://issues.apache.org/jira/browse/CLI-164
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.1
>            Reporter: Emmanuel Bourg
>            Assignee: Emmanuel Bourg
>             Fix For: 1.2
>
>
> PosixParser doesn't handle properly unrecognized tokens starting with '-' when stopAtNonOption is enabled, the token is simply ignored.
> For example, if the option 'a' is defined, the following command line:
> {code}-z -a foo{code}
> is interpreted as:
> {code}-a foo{code}

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


[jira] Resolved: (CLI-164) PosixParser ignores unrecognized tokens starting with '-'

Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLI-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg resolved CLI-164.
--------------------------------

    Resolution: Fixed

> PosixParser ignores unrecognized tokens starting with '-'
> ---------------------------------------------------------
>
>                 Key: CLI-164
>                 URL: https://issues.apache.org/jira/browse/CLI-164
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.1
>            Reporter: Emmanuel Bourg
>             Fix For: 1.2
>
>
> PosixParser doesn't handle properly unrecognized tokens starting with '-' when stopAtNonOption is enabled, the token is simply ignored.
> For example, if the option 'a' is defined, the following command line:
> {code}-z -a foo{code}
> is interpreted as:
> {code}-a foo{code}

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


[jira] Resolved: (CLI-164) PosixParser ignores unrecognized tokens starting with '-'

Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLI-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg resolved CLI-164.
--------------------------------

    Resolution: Fixed

> PosixParser ignores unrecognized tokens starting with '-'
> ---------------------------------------------------------
>
>                 Key: CLI-164
>                 URL: https://issues.apache.org/jira/browse/CLI-164
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: Parser
>    Affects Versions: 1.1
>            Reporter: Emmanuel Bourg
>            Assignee: Emmanuel Bourg
>             Fix For: 1.2
>
>
> PosixParser doesn't handle properly unrecognized tokens starting with '-' when stopAtNonOption is enabled, the token is simply ignored.
> For example, if the option 'a' is defined, the following command line:
> {code}-z -a foo{code}
> is interpreted as:
> {code}-a foo{code}

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