commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLI-179) Needs "standalone" options that can be used even if required options are not set
Date Mon, 25 May 2009 17:36:45 GMT

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

Emmanuel Bourg updated CLI-179:
-------------------------------

    Fix Version/s: 1.4

Good point. But I don't know how this could be implemented. I see how one could work around
this issue, either:
- drop the required flag on the options
- perform a two pass parsing with different options: the first one to detect a "standalone"
option, the second one to parse all the options allowed

Suggestions are welcome.


> Needs "standalone" options that can be used even if required options are not set
> --------------------------------------------------------------------------------
>
>                 Key: CLI-179
>                 URL: https://issues.apache.org/jira/browse/CLI-179
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: Parser
>    Affects Versions: 1.2
>            Reporter: Joël Royer
>             Fix For: 1.4
>
>
> it is currently impossible to have options like "help" or "version" if we also have some
required options. The parsing results in an error "Missing parameters".
> But for an "help" or "version" option, it would be usefull to display the wanted information,
even if required options are not set.

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


Mime
View raw message