1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-01 22:28:02 +02:00

gpg: Print a warning if no command has been given.

* g10/gpg.c (main): Print in the default case.
--

GnuPG-bug-id: 2943
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2017-02-13 13:09:51 +01:00
parent f8ce31a7bf
commit 810adfd478
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -4894,8 +4894,12 @@ main (int argc, char **argv)
#endif /*USE_TOFU*/
break;
case aListPackets:
default:
if (!opt.quiet)
log_info (_("WARNING: no command supplied."
" Trying to guess what you mean ...\n"));
/*FALLTHU*/
case aListPackets:
if( argc > 1 )
wrong_args("[filename]");
/* Issue some output for the unix newbie */