summaryrefslogtreecommitdiffstats
path: root/doc/gpg.texi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-06-06 11:50:58 +0200
committerWerner Koch <wk@gnupg.org>2018-06-06 11:57:34 +0200
commit257661d6ae0ca376df758c38fabab2316d10e3a9 (patch)
tree0d88794c0cf6936b8bcb9ac667dafc1abb674748 /doc/gpg.texi
parentg10: Remove bogus comment. (diff)
downloadgnupg2-257661d6ae0ca376df758c38fabab2316d10e3a9.tar.xz
gnupg2-257661d6ae0ca376df758c38fabab2316d10e3a9.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 <wk@gnupg.org>
Diffstat (limited to 'doc/gpg.texi')
-rw-r--r--doc/gpg.texi11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi
index a12b5afee..642805f88 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
@@ -2305,7 +2313,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