aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/argparse.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.0.20gnupg-2.0.20Werner Koch2013-05-101-1/+1
|
* Allow marking options as ignored.Werner Koch2013-04-221-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]>
* jnlib: Add meta option ignore-invalid-option.Werner Koch2012-12-181-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)
* Update copyright year.Werner Koch2012-01-311-61/+61
|
* Update copyright year.Werner Koch2011-01-111-1/+1
|
* Argg again: Remove cruft from a test.Werner Koch2009-03-031-1/+1
|
* Add --reload command to gpgconf.Werner Koch2009-03-031-1/+1
| | | | | | Fix a problem in exechelp.c Get ready for a release.
* Update spanish translation.Werner Koch2009-01-081-1/+1
| | | | | | Cleanups. Allow utf-8 in email addresses.
* Fix last change.Werner Koch2008-11-201-3/+3
|
* Made arg_parse more readable.Werner Koch2008-11-121-304/+385
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-201-0/+5
|
* Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch2008-09-291-181/+252
|
* Fixed segv in gpg-agent (command marktrusted).Werner Koch2008-05-271-1/+6
| | | | | | Replaced almost all free by xfree. Translation fixes.
* Add some tests.Werner Koch2008-02-221-2/+2
|
* Extended the --check-program output: Error messages are now inlcued in anWerner Koch2007-08-291-53/+59
| | | | | easy parsable format.
* Implemented the chain model for X.509 validation.Werner Koch2007-08-101-1/+14
|
* Changed to GPLv3.Werner Koch2007-07-041-7/+5
| | | | | Removed intl/.
* A bunch of minor changes for Windows.Werner Koch2007-07-041-49/+57
|
* UTF-8 FixesWerner Koch2007-05-041-16/+33
|
* The Cherry XX44 keyboard's PINpad does now work.Werner Koch2007-03-071-1/+1
| | | | | DINSIG and NKS card applications are now also PIN pad aware.
* Fix for bug 537Werner Koch2006-10-021-14/+14
|
* Updated FSF's address.Werner Koch2006-06-201-14/+16
|
* gcc-4 defaults forced me to edit many many files to get rid of theWerner Koch2005-06-161-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.
* (stream_read_string): Removed call to abort onWerner Koch2005-02-221-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.
* * argparse.c (strusage): Changed default copyright year to 2004.Werner Koch2004-01-161-1/+1
|
* (initialize): Replaced use of non-literal formaWerner Koch2003-12-171-15/+17
| | | | | args. Suggested by Florian Weimer.
* Updated from NewPGWerner Koch2003-01-091-0/+997
|
* Removed files for CVS reorganizationDavid Shaw2002-06-291-994/+0
|
* See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch2000-07-141-2/+2
|
* Add files to new directory.Werner Koch2000-01-241-0/+994
This is mainly stuff moved from ../util to here.