Home GnuPG

Get rid of getopt_long and improve --help output.
2f7b275b2b5dUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Get rid of getopt_long and improve --help output.

* pinentry/argparse.c, pinentry/argparse.h: New. Taken from GnuPG
master.
* pinentry/Makefile.am (libpinentry_a_SOURCES): Add them.
* pinentry/pinentry.c: Include argparse.h.
(usage): Remove.
(my_strusage): New.
(pinentry_parse_opts): Rewrite.  Do not return a value.  Change call
callers.

getopt_long is not generally available, for example it is missing on
AIX. Instead of adding replacement code we use the option parser
from GnuPG and thus also gain a better --version and --help.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 17 2015, 11:28 AM
Parents
rP8fa3ca90bfba: Use CH type instead of wchar_t for curses.
Branches
Unknown
Tags
Unknown