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.
(cherry picked from commit 257661d6ae0ca376df758c38fabab2316d10e3a9)
- Signed-off-by: Werner Koch <wk@gnupg.org>