You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas P (JIRA)" <ji...@apache.org> on 2018/10/11 19:11:00 UTC

[jira] [Commented] (CLI-285) Multiple Options in Option Group

    [ https://issues.apache.org/jira/browse/CLI-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16646934#comment-16646934 ] 

Thomas P commented on CLI-285:
------------------------------

In my view the object mane _OptionGroup_ is missleading and I'd rather concider a group of options to depend on each other. But for the time being that's what we have.

I suggest to call the new Feature an *OptionList* which can be added to an _OptionGroup._

 

I'd also volonteer to implement that.

> Multiple Options in Option Group
> --------------------------------
>
>                 Key: CLI-285
>                 URL: https://issues.apache.org/jira/browse/CLI-285
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: CLI-1.x
>            Reporter: Richard Kao
>            Priority: Major
>
> Allow the creation of multiple Options with in an OptionGroup so something like the following can be created:
> [ -a ] [ [ -b <arg>] [ -c <arg> ] | [ -d <arg> ] | [ -e <arg> ]]
> So these would be valid:
> -b <arg>
> -c <arg>
> -b <arg> -c <arg>
> -d <arg>
> -e <arg>
> The "-d", "-e", and "-b -c" are mutually exclusive



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)