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>