help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-gengetopt] option sets?


From: Phil Edwards
Subject: [help-gengetopt] option sets?
Date: Tue, 22 Jan 2002 03:34:13 -0500

Hello.  I've been using 2.5 for a little while, and something I find
myself doing over and over is checking for mutually-exclusive options.
An easy example would be the tar(1) program checking its c/r/t/u/x options:
one and only one must be given.

Would it be feasible to extend gengetopt to do this checking?  If options
were listed as part of an "option set" then only one of them could/must
appear; multiple options from the set would be an error.  By default
the option "could" appear, the existing 'required' tag would be used for
"must appear" options.

Just a random sleep-deprived thought.  :-)


Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]