diff options
author | Werner Koch <[email protected]> | 2018-06-06 09:50:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-06-06 09:59:06 +0000 |
commit | dc87a3341f28ddac1113e90a3861d062be2610e2 (patch) | |
tree | f82f4239fe8cf452ad8a0823da9fa76739183213 /doc/gpg.texi | |
parent | po: Fix Swedish and Turkish translations. (diff) | |
download | gnupg-dc87a3341f28ddac1113e90a3861d062be2610e2.tar.gz gnupg-dc87a3341f28ddac1113e90a3861d062be2610e2.zip |
gpg: New command --show-keys.
* g10/gpg.c (aShowKeys): New const.
(opts): New command --show-keys.
(main): Implement command.
* g10/import.c (import_keys_internal): Don't print stats in show-only
mode.
(import_one): Be silent in show-only mode.
--
Using
--import --import-options show-only
to look at a key is too cumbersome. Provide this shortcut and also
remove some diagnostic cruft in this case.
Signed-off-by: Werner Koch <[email protected]>
(cherry picked from commit 257661d6ae0ca376df758c38fabab2316d10e3a9)
Diffstat (limited to '')
-rw-r--r-- | doc/gpg.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi index 260b9f33e..4dab23816 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -353,6 +353,14 @@ may thus be used to see what keys @command{@gpgname} might use. In particular external methods as defined by @option{--auto-key-locate} may be used to locate a key. Only public keys are listed. +@item --show-keys +@opindex show-keys +This commands takes OpenPGP keys as input and prints information about +them in the same way the command @option{--list-keys} does for +imported key. No internal state is changed. For automated processing +this command should be combined with the option +@option{--with-colons}. + @item --fingerprint @opindex fingerprint List all keys (or the specified ones) along with their @@ -2295,7 +2303,8 @@ opposite meaning. The options are: Show a listing of the key as imported right before it is stored. This can be combined with the option @option{--dry-run} to only look at keys; the option @option{show-only} is a shortcut for this - combination. Note that suffixes like '#' for "sec" and "sbb" lines + combination. The command @option{--show-keys} is another shortcut + for this. Note that suffixes like '#' for "sec" and "sbb" lines may or may not be printed. @item import-export |