gpg: New command --show-keys.
authorWerner Koch <wk@gnupg.org>
Wed, 6 Jun 2018 09:50:58 +0000 (11:50 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 6 Jun 2018 09:59:06 +0000 (11:59 +0200)
commitdc87a3341f28ddac1113e90a3861d062be2610e2
treef82f4239fe8cf452ad8a0823da9fa76739183213
parent7c004dd58f28c182c1289bfa071cd1ec8892529d
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>
(cherry picked from commit 257661d6ae0ca376df758c38fabab2316d10e3a9)
doc/gpg.texi
g10/gpg.c
g10/import.c