aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/argparse.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-05-10Release 2.0.20gnupg-2.0.20Werner Koch1-1/+1
2013-04-22Allow marking options as ignored.Werner Koch1-13/+25
* 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]>
2012-12-18jnlib: Add meta option ignore-invalid-option.Werner Koch1-5/+152
* 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)
2012-01-31Update copyright year.Werner Koch1-61/+61
2011-01-11Update copyright year.Werner Koch1-1/+1
2009-03-03Argg again: Remove cruft from a test.Werner Koch1-1/+1
2009-03-03Add --reload command to gpgconf.Werner Koch1-1/+1
Fix a problem in exechelp.c Get ready for a release.
2009-01-08Update spanish translation.Werner Koch1-1/+1
Cleanups. Allow utf-8 in email addresses.
2008-11-20Fix last change.Werner Koch1-3/+3
2008-11-12Made arg_parse more readable.Werner Koch1-304/+385
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+5
2008-09-29Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch1-181/+252
2008-05-27Fixed segv in gpg-agent (command marktrusted).Werner Koch1-1/+6
Replaced almost all free by xfree. Translation fixes.
2008-02-22Add some tests.Werner Koch1-2/+2
2007-08-29Extended the --check-program output: Error messages are now inlcued in anWerner Koch1-53/+59
easy parsable format.
2007-08-10Implemented the chain model for X.509 validation.Werner Koch1-1/+14
2007-07-04Changed to GPLv3.Werner Koch1-7/+5
Removed intl/.
2007-07-04A bunch of minor changes for Windows.Werner Koch1-49/+57
2007-05-04UTF-8 FixesWerner Koch1-16/+33
2007-03-07The Cherry XX44 keyboard's PINpad does now work.Werner Koch1-1/+1
DINSIG and NKS card applications are now also PIN pad aware.
2006-10-02Fix for bug 537Werner Koch1-14/+14
2006-06-20Updated FSF's address.Werner Koch1-14/+16
2005-06-16gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch1-1/+1
char * vs. unsigned char * warnings. The GNU coding standards used to say that these mismatches are okay and better than a bunch of casts. Obviously this has changed now.
2005-02-22(stream_read_string): Removed call to abort onWerner Koch1-1/+1
memory error because the CVS version of libgcrypt makes sure that ERRNO gets always set on error even with a faulty user supplied function.
2004-01-16* argparse.c (strusage): Changed default copyright year to 2004.Werner Koch1-1/+1
2003-12-17(initialize): Replaced use of non-literal formaWerner Koch1-15/+17
args. Suggested by Florian Weimer.
2003-01-09Updated from NewPGWerner Koch1-0/+997
2002-06-29Removed files for CVS reorganizationDavid Shaw1-994/+0
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-2/+2
2000-01-24Add files to new directory.Werner Koch1-0/+994
This is mainly stuff moved from ../util to here.