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:57:34 +0000 (11:57 +0200)
commit257661d6ae0ca376df758c38fabab2316d10e3a9
tree0d88794c0cf6936b8bcb9ac667dafc1abb674748
parentd2e6b3ea1d70db1039a828fb3a978a4504f8f0c5
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>
doc/gpg.texi
g10/gpg.c
g10/import.c