[ https://issues.apache.org/jira/browse/CLI-285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17824636#comment-17824636 ]
Claude Warren commented on CLI-285: ----------------------------------- Upon further reflection I think that to complete the set of check of valid option conditions, it is necessary to have a "requires" field that will accept either an OptionsCollection or an Option. In this case the option would only be valid if the requires were also valid and present. > 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 (v8.20.10#820010)