From d37971b45f7dbb311a7e5d3358afc617fd39ce74 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 Nov 2024 08:35:04 +0100 Subject: [PATCH] gpg: Improve wording for only-pubkeys. * g10/import.c (parse_import_options): Add a description to only-pubkeys. -- See gnupg-devel for a brief discussion. --- 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 9aac29fb2..f2bb95d04 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -2156,7 +2156,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 65f911f30..ee41bcf24 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. */