aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/argparse.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow marking options as ignored.Werner Koch2013-04-221-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | * 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 8ea49cf5) 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 <[email protected]>
* jnlib: Add meta option ignore-invalid-option.Werner Koch2012-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * jnlib/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. (cherry-picked from commit 41d564333d35c923f473aa90625d91f8fe18cd0b)
* Made arg_parse more readable.Werner Koch2008-11-121-29/+133
|
* Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch2008-09-291-0/+13
|
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* Fix for bug 537Werner Koch2006-10-021-14/+14
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* Updated from NewPGWerner Koch2003-01-091-0/+67
|
* Removed files for CVS reorganizationDavid Shaw2002-06-291-64/+0
|
* Add files to new directory.Werner Koch2000-01-241-0/+64
This is mainly stuff moved from ../util to here.