[Pkg-gnupg-commit] [gnupg2] 124/180: g10: Spell out --desig-revoke.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sat Dec 24 22:29:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 3c691097ca144e9a1d4c9185636c59a848bec85c
Author: Justus Winter <justus at g10code.com>
Date:   Thu Dec 15 13:59:48 2016 +0100

    g10: Spell out --desig-revoke.
    
    * g10/gpg.c (opts): Rename option.
    * doc/gpg.texi: Update accordingly.
    --
    This is a rather long name, but I believe that this command is rarely
    used, and in places where it is used frequently, the process is likely
    automated.
    
    GnuPG-bug-id: 2700
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 doc/gpg.texi | 4 +++-
 g10/gpg.c    | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/doc/gpg.texi b/doc/gpg.texi
index 753bec3..d24584a 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -727,7 +727,9 @@ published, which is best done by sending the key to a keyserver
 to a file which is then send to frequent communication partners.
 
 
- at item --desig-revoke @code{name}
+ at item --generate-designated-revocation @code{name}
+ at opindex generate-designated-revocation
+ at itemx --desig-revoke @code{name}
 @opindex desig-revoke
 Generate a designated revocation certificate for a key. This allows a
 user (with the permission of the keyholder) to revoke someone else's
diff --git a/g10/gpg.c b/g10/gpg.c
index 7702bb3..f0eb930 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -476,6 +476,7 @@ static ARGPARSE_OPTS opts[] = {
   ARGPARSE_c (aEditKey,  "key-edit"   ,"@"),
   ARGPARSE_c (aPasswd,   "change-passphrase", N_("change a passphrase")),
   ARGPARSE_c (aPasswd,   "passwd", "@"),
+  ARGPARSE_c (aDesigRevoke, "generate-designated-revocation", "@"),
   ARGPARSE_c (aDesigRevoke, "desig-revoke","@" ),
   ARGPARSE_c (aExport, "export"           , N_("export keys") ),
   ARGPARSE_c (aSendKeys, "send-keys"     , N_("export keys to a keyserver") ),
@@ -4555,7 +4556,7 @@ main (int argc, char **argv)
 
       case aDesigRevoke:
 	if (argc != 1)
-	    wrong_args ("--desig-revoke user-id");
+	    wrong_args ("--generate-designated-revocation user-id");
 	username = make_username (*argv);
 	gen_desig_revoke (ctrl, username, locusr);
 	xfree (username);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list