Home GnuPG
Diffusion GnuPG 7249ab0f95d1

common: Avoid unnecessary ambiguity in argparse.
7249ab0f95d1Unpublished

Unpublished Commit ยท Learn More

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

Description

common: Avoid unnecessary ambiguity in argparse.

* common/argparse.c (find_long_option): Avoid unnecessary ambiguity.

If two struct ARGPARSE_OPTS share a prefix in their long_opt name, but
have the exact same short_opt and flags, they are aliases and not
distinct options. Avoid reporting this as an ambiguity, so that (for
example) both --clearsign and --clear-sign can be invoked as --clear.

  • Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  • Debian-Bug-Id: #850475

Details

Provenance
dkgAuthored on Jan 10 2017, 9:59 PM
Parents
rGa20a450ac4ef: systemd-user: Enable "systemctl --user reload {dirmngr,gpg-agent}"
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Kahn Gillmor <dkg@fifthhorseman.net> committed rG7249ab0f95d1: common: Avoid unnecessary ambiguity in argparse. (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Jan 11 2017, 8:32 AM