summaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
authorJustus Winter <justus@g10code.com>2016-12-13 17:49:47 +0100
committerJustus Winter <justus@g10code.com>2016-12-13 17:49:47 +0100
commitc1c35fb887061de05661f3411eda97546e1a52d7 (patch)
tree080d1c752a979a304769fb45d47c153e880ce841 /sm/gpgsm.c
parentg10: Spell out --gen-revoke. (diff)
downloadgnupg2-c1c35fb887061de05661f3411eda97546e1a52d7.tar.xz
gnupg2-c1c35fb887061de05661f3411eda97546e1a52d7.zip
g10,sm: Spell out --passwd.
* g10/gpg.c (opts): Spell out option. * sm/gpgsm.c (opts): Likewise. * doc/gpg.texi: Update accordingly. * doc/gpgsm.texi: Likewise. GnuPG-bug-id: 2700 Signed-off-by: Justus Winter <justus@g10code.com>
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index a2ec441d6..79508e626 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -231,7 +231,8 @@ static ARGPARSE_OPTS opts[] = {
N_("pass a command to the dirmngr")),
ARGPARSE_c (aCallProtectTool, "call-protect-tool",
N_("invoke gpg-protect-tool")),
- ARGPARSE_c (aPasswd, "passwd", N_("change a passphrase")),
+ ARGPARSE_c (aPasswd, "change-passphrase", N_("change a passphrase")),
+ ARGPARSE_c (aPasswd, "passwd", "@"),
ARGPARSE_c (aGPGConfList, "gpgconf-list", "@"),
ARGPARSE_c (aGPGConfTest, "gpgconf-test", "@"),
@@ -1995,7 +1996,7 @@ main ( int argc, char **argv)
case aPasswd:
if (argc != 1)
- wrong_args ("--passwd <key-Id>");
+ wrong_args ("--change-passphrase <key-Id>");
else
{
int rc;