You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by John Keyes <jb...@mac.com> on 2003/05/22 13:41:37 UTC
[CLI] inclusive and exclusive option groups
There are currently two types of OptionGroup, Inclusive and Exclusive.
The inclusive permits the creation of a group of options that MUST be
present together. This allows the specification of whether an
group of options are required or not, rather than specifing it individually
per Option/Argument.
The exclusive permits the creation of a group of options, of which only
ONE can be present. It is also possible to add an inclusive group
as a member e.g.
inclusive = '-d' and '-a'
option = '-x'
So the valid command lines are:
'-x' or '-d -a' or '-da'.
Do people see a need to have the possiblity of adding an exclusive group
as a member to an inclusive group? I can't see a use case, just wondering
if anyone else can.
Cheers,
-John K
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org