Home GnuPG
Diffusion GnuPG f17862d47d18

common: Allow abbreviations of standard options.

Description

common: Allow abbreviations of standard options.

* argparse.h (ARGPARSE_SHORTOPT_HELP, ARGPARSE_SHORTOPT_VERSION,
ARGPARSE_SHORTOPT_WARRANTY, ARGPARSE_SHORTOPT_DUMP_OPTIONS): New
macros.
(ARGPARSE_end): Add some placeholders for standard options.
* argparse.c (arg_parse): Fill in missing standard options so
default machinery works.  Check for standard options in new way.
Do not write out standard options for --dump-options.
  • Signed-off-by: Marcus Brinkmann <mb@g10code.com>
  • GnuPG-bug-id: T1747

Details

Provenance
marcusAuthored on Jul 18 2017, 6:08 PM
Parents
rG2e1342b78b02: gpgscm,w32: Fix testing for absolute paths.
Branches
Unknown
Tags
Unknown
Tasks
T1747: Some command line options can not be abbreviated