commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Perrot (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CLI-189) "Unexpected --help while processing"
Date Tue, 04 Sep 2012 08:06:08 GMT

     [ https://issues.apache.org/jira/browse/CLI-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Perrot closed CLI-189.
--------------------------------

    
> "Unexpected --help while processing"
> ------------------------------------
>
>                 Key: CLI-189
>                 URL: https://issues.apache.org/jira/browse/CLI-189
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-2.x, Help formatter
>    Affects Versions: 2.0
>         Environment: snapshot jar
>            Reporter: Guillaume Perrot
>             Fix For: 2.0
>
>
> The help trigger feature seems not working.
> When I pass --help to the command line, I have "Unexpected --help while processing",
then usage is printed.
> Code snippet:
> {code:java}
>  Parser parser = new Parser();
>  parser.setGroup(group);
>  parser.setHelpFormatter(new HelpFormatter());
>  parser.setHelpTrigger("--help");
>  parser.parseAndHelp(args);
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message