summaryrefslogtreecommitdiffstats
path: root/scd
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-04-18 14:40:43 +0200
committerWerner Koch <wk@gnupg.org>2014-03-07 08:51:47 +0100
commit8fc9de8d6bf663f7c8419b42dab01f590a694d59 (patch)
treecc57ebe3e108d33f9ddeca97a4b4043e309d8346 /scd
parentcommon: Fix recent commit 55656208. (diff)
downloadgnupg2-8fc9de8d6bf663f7c8419b42dab01f590a694d59.tar.xz
gnupg2-8fc9de8d6bf663f7c8419b42dab01f590a694d59.zip
Allow marking options as ignored.
* jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New. (ARGPARSE_TYPE_MASK): New, for internal use. (ARGPARSE_ignore): New. * jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining constants by macros. (optfile_parse): Implement ARGPARSE_OPT_IGNORE. (arg_parse): Exclide ignore options from --dump-options. -- In addition to the ignore-invalid-option (commit 41d56433) it is often useful to mark options in a configuration which as NOP. For example options which have no more function at all but can be expected to be found in existing conf files. Such an option (or command) may now be given as ARGPARSE_ignore (300, "obsolete-option") The 300 is merely used as a non-valid single option name much like group names or the 500+n values used for long options. Signed-off-by: Werner Koch <wk@gnupg.org> (cherry picked from commit 54c54e2824aab5716a187bbbf6dff8860d6a6056) Resolved conflicts: common/argparse.c: Fixed.
Diffstat (limited to 'scd')
0 files changed, 0 insertions, 0 deletions