1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

doc: Document the gpgconf --unlock command.

* tools/gpgconf.c (main): Fix usage message.
--

GnuPG-bug-id: 6838
This commit is contained in:
Werner Koch 2024-01-11 15:28:33 +01:00
parent 8dfbad0c41
commit e65720f286
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 16 additions and 5 deletions

View file

@ -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
{