[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gengetopt] option sets?
From: |
Lorenzo Bettini |
Subject: |
Re: [help-gengetopt] option sets? |
Date: |
Wed, 23 Jan 2002 08:18:56 +0100 |
Phil Edwards wrote:
>
> 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.
Well this looks like a nice extension! I'll try to work on this :-)
thanks a lot for the suggestion.
cheers
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD student in Computer Science |
| Dip. Sistemi e Informatica, Univ. di Firenze |
| Tel +39 055 4796741, Fax +39 055 4796730 |
| Florence - Italy (Linux User # 158233) |
| Home Page : http://w3.newnet.it/bettini |
| Mail : address@hidden |
| http://music.dsi.unifi.it XKlaim language |
| http://w3.newnet.it/bettini/purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
+-----------------------------------------------------+