commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Keyes <j...@mac.com>
Subject [CLI] inclusive and exclusive option groups
Date Thu, 22 May 2003 11:41:37 GMT
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


Mime
View raw message