summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2024-01-11 15:28:33 +0100
committerWerner Koch <wk@gnupg.org>2024-01-11 15:30:12 +0100
commite65720f286cc65b32eb559db2c1ce32ad0829155 (patch)
tree69c303213e49e84210070c2d82818c7b96b1327f /tools
parentgpg: Fix regression in the Revoker keyword of the parmeter file. (diff)
downloadgnupg2-e65720f286cc65b32eb559db2c1ce32ad0829155.tar.xz
gnupg2-e65720f286cc65b32eb559db2c1ce32ad0829155.zip
doc: Document the gpgconf --unlock command.
* tools/gpgconf.c (main): Fix usage message. -- GnuPG-bug-id: 6838
Diffstat (limited to 'tools')
-rw-r--r--tools/gpgconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index b528e329c..6a5add42b 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -1074,12 +1074,12 @@ main (int argc, char **argv)
#if !defined(HAVE_W32_SYSTEM)
if (!fname)
{
- es_fprintf (es_stderr, "usage: %s [options] lock|unlock NAME",
- GPGCONF_NAME);
+ es_fprintf (es_stderr, "usage: %s --%slock NAME",
+ GPGCONF_NAME, cmd==aDotlockUnlock?"un":"");
es_putc ('\n', es_stderr);
- es_fputs (_("Need one NAME argument"), es_stderr);
+ es_fputs ("Need name of file protected by the lock", es_stderr);
es_putc ('\n', es_stderr);
- gpgconf_failure (GPG_ERR_USER_2);
+ gpgconf_failure (GPG_ERR_SYNTAX);
}
else
{