Home GnuPG
Diffusion GnuPG de01c51ecb39

Print warning for arguments not considered an option.
de01c51ecb39Unpublished

Unpublished Commit · Learn More

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

Description

Print warning for arguments not considered an option.

GnuPG requires that options are given before other arguments. This
can sometimes be confusing. We now print a warning if we found an
argument looking alike a long option without being preceded by the
stop option. This is bug#1343.

  • common/argparse.h (ARGPARSE_FLAG_STOP_SEEN): New.
  • common/argparse.c (arg_parse): Set new flag.
  • g10/gpg.c (main): Print the warning.
  • agent/gpg-agent.c (main): Ditto.
  • dirmngr/dirmngr.c (main): Ditto.
  • g13/g13.c (main): Ditto.
  • scd/scdaemon.c (main): Ditto.
  • sm/gpgsm.c (main): Ditto.
  • tools/gpg-connect-agent.c (main): Ditto.
  • tools/gpgconf.c (main): Ditto.

Details

Provenance
wernerAuthored on Mar 27 2012, 12:35 PM
Parents
rG26ec6c79020c: Update the maintenance instructions.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGde01c51ecb39: Print warning for arguments not considered an option. (authored by Werner Koch <wk@gnupg.org>).Mar 27 2012, 12:38 PM