[GnuPG PATCH STABLE-BRANCH-2-4] Correct documentation for only-pubkeys

Daniel Kahn Gillmor via Gnupg-devel <[email protected]>
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <[email protected]>
* doc/gpg.texi: Fix documentation for only-pubkeys
* g10/import.c: Provide help_text for only-pubkeys

--

Signed-off-by: Daniel Kahn Gillmor <[email protected]>
---
 doc/gpg.texi | 2 +-
 g10/import.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/gpg.texi b/doc/gpg.texi
index 7e80a293a..22eed595a 100644
--- a/doc/gpg.texi
+++ b/doc/gpg.texi
@@ -2175,7 +2175,7 @@ are available for all keyserver types, some common options are:
   retrieving keys by subkey id.
 
   @item only-pubkeys
-  Do now allow to import secret keys.
+  Do not import secret keys.
 
   @item timeout
   @itemx http-proxy=@var{value}
diff --git a/g10/import.c b/g10/import.c
index 9adda3e8c..d653eda5c 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -212,7 +212,8 @@ parse_import_options(char *str,unsigned int *options,int noisy)
       /* New options.  Right now, without description string.  */
       {"ignore-attributes", IMPORT_IGNORE_ATTRIBUTES, NULL, NULL},
 
-      {"only-pubkeys", IMPORT_ONLY_PUBKEYS, NULL, NULL},
+      {"only-pubkeys", IMPORT_ONLY_PUBKEYS, NULL,
+       N_("do not import secret keys")},
 
       /* Hidden options which are enabled by default and are provided
        * in case of problems with the respective implementation.  */
-- 
2.47.2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.