You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Joël Royer (JIRA)" <ji...@apache.org> on 2009/06/02 11:01:07 UTC
[jira] Commented: (CLI-179) Needs "standalone" options that can be
used even if required options are not set
[ https://issues.apache.org/jira/browse/CLI-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715429#action_12715429 ]
Joël Royer commented on CLI-179:
--------------------------------
I suggest adding a method isStandalone (true/false) to the OptionBuilder class.
The parser would authorize the use of standalone options without required options.
> 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.