mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
d2e6b3ea1d
commit
257661d6ae
3 changed files with 28 additions and 2 deletions
11
doc/gpg.texi
11
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue