You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jacopo Cappellato (JIRA)" <ji...@apache.org> on 2015/05/03 18:18:06 UTC

[jira] [Updated] (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:all-tabpanel ]

Jacopo Cappellato updated CLI-179:
----------------------------------
    Attachment: CLI-179.patch

This is my attempt to implement "standalone" options for the new Option.builder() and DefaultParser.
It would be great if someone with more knowledge of the CLI codebase than me could review it, possibly test and let me know if this is the right approach. The JavaDoc comments should be enhanced too.


> 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
>
>         Attachments: CLI-179.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)