[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gengetopt] option group with exclusion
From: |
PAPP Gyozo |
Subject: |
Re: [help-gengetopt] option group with exclusion |
Date: |
Tue, 1 Feb 2005 00:44:27 +0100 |
Finally, I could persuade the customers to allow the use of option
'--exclude' in conjuction with either of the other three options, so
this way those ones could form a group with mutual exclusive group
options while --exclude can be a plain option. This is more user
friendly as they thought first. :)
On Thu, 27 Jan 2005 12:14:57 +0100, Gyozo, PAPP (VBuster)
<address@hidden> wrote:
> Hi there,
>
> currently I'm struggling to implement an interface which is basically a
> mutually exlcusive group of option with a little exception two of the four
> options are allowed to appear at the same time.
>
> Consider the following situation, there are 4 options:
>
> --all-files
> --pattern
> --include
> --exclude
>
> the rules which cannot be changed because this was what the customer wanted
> actually:
> 1.)--all-files should not be used neither of the remaining 3 options.
> 2.)--pattern should not be used neither of the remaining 3 options.
> 3.) BUT --exclude and --include can be used at the same time.
>
> Apart from the last term this could be easily implemented as a option group.
> But how to modify gengetopt to be able to handle such a situation? I've added
> some code around gengetopt calls in my application, but I feel it is worth
> discussing this problem. May gengetopt address such functionality, too?
>
> --
> Papp, Győző
> VirusBuster Kft
>
> _______________________________________________
> Help-gengetopt mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gengetopt
>
--
Papp, Gyozo