core: Add new option --secret-subkey to help texts.

* src/gpgme-tool.c (hlp_export): Add new option.
* tests/run-export.c (show_usage): Print new option.
--

GnuPG-bug-id: 5757
This commit is contained in:
Ingo Klöcker 2022-01-04 12:30:22 +01:00
parent fa5f1b57cc
commit 2752e81f89
2 changed files with 3 additions and 1 deletions

View File

@ -2658,7 +2658,8 @@ cmd_import (assuan_context_t ctx, char *line)
static const char hlp_export[] = static const char hlp_export[] =
"EXPORT [--extern] [--minimal] [--secret [--pkcs12] [--raw]] [<pattern>]\n" "EXPORT [--extern] [--minimal]\n"
" [--secret [--pkcs12] [--raw]|--secret-subkey] [<pattern>]\n"
"\n" "\n"
"Export the keys described by PATTERN. Write the\n" "Export the keys described by PATTERN. Write the\n"
"the output to the object set by the last OUTPUT command."; "the output to the object set by the last OUTPUT command.";

View File

@ -59,6 +59,7 @@ show_usage (int ex)
" --ssh export as ssh public key\n" " --ssh export as ssh public key\n"
" --extern send keys to the keyserver (TAKE CARE!)\n" " --extern send keys to the keyserver (TAKE CARE!)\n"
" --secret export secret keys instead of public keys\n" " --secret export secret keys instead of public keys\n"
" --secret-subkey export secret subkeys instead of public keys\n"
" --raw use PKCS#1 as secret key format\n" " --raw use PKCS#1 as secret key format\n"
" --pkcs12 use PKCS#12 as secret key format\n" " --pkcs12 use PKCS#12 as secret key format\n"
, stderr); , stderr);