[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-gengetopt] accept option arguments (even in enum)
From: |
Papp Gyozo (VBuster) |
Subject: |
[help-gengetopt] accept option arguments (even in enum) |
Date: |
Tue, 21 Jul 2009 12:24:02 +0200 |
Hi there,
long time was passing by since my last mail. It actually means the current
version suffices our needs quite very well. Actually it is a good piece of
work! Congratulation.
Now we have run into a problem. gengetopt denies special characters (ie.
symbols like '-' or '+') in enum option values and in default values as well
suspectedly.
We would like to have a filter option which filters out/in the specified type
of records. We thought it was quite natural to do it in the following way:
option "filter" f
"include or exclude the given type in case of leading '-' or '+',
respectively."
multiple enum
values="-unspecified","-ok","-incompatible","-missing","-other",
"+unspecified","+ok","+incompatible","+missing","+other",
"problematic","all"
default="problematic"
optional
What do you think? gengetopt should enable symbols in enums or should we
rephrase our idea? Please note that this option is multiple enum, so the real
strength of this approach that custom mixed filter definitions can be described
this way:
--filter=+other,-missing
--
Papp, Gyozo
VirusBuster Kft
- [help-gengetopt] accept option arguments (even in enum),
Papp Gyozo (VBuster) <=