diff options
author | Werner Koch <wk@gnupg.org> | 2012-12-18 18:06:41 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2012-12-18 18:06:41 +0100 |
commit | 41d564333d35c923f473aa90625d91f8fe18cd0b (patch) | |
tree | c251a953c8d4f3abd0d23b786be2ca28e69661a2 /common/argparse.h | |
parent | utf8conv.c: Add hacks for Android. (diff) | |
download | gnupg2-41d564333d35c923f473aa90625d91f8fe18cd0b.tar.xz gnupg2-41d564333d35c923f473aa90625d91f8fe18cd0b.zip |
common: Add meta option ignore-invalid-option.
* common/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New.
(initialize): Init field IIO_LIST.
(ignore_invalid_option_p): New.
(ignore_invalid_option_add): New.
(ignore_invalid_option_clear): New.
(optfile_parse): Implement meta option.
--
This option is currently of no use. However, as soon as it has been
deployed in all stable versions of GnuPG, it will allow the use of the
same configuration file with an old and a new version of GnuPG. For
example: If a new version implements the option "foobar", and a user
uses it in gpg.conf, an old version of gpg would bail out with the
error "invalid option". To avoid that the following line can be put
above that option in gpg.conf
ignore-invalid-option foobar
This meta option may be given several times or several option names
may be given as arguments (space delimited). Note that this option is
not available on the command line.
Diffstat (limited to 'common/argparse.h')
-rw-r--r-- | common/argparse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/argparse.h b/common/argparse.h index c8f4c6019..a36218fc8 100644 --- a/common/argparse.h +++ b/common/argparse.h @@ -60,6 +60,7 @@ typedef struct const char *last; void *aliases; const void *cur_alias; + void *iio_list; } internal; /* Private - do not change. */ } ARGPARSE_ARGS; |