mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-17 20:27:03 +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:
parent
f8ce31a7bf
commit
810adfd478
@ -4894,8 +4894,12 @@ main (int argc, char **argv)
|
|||||||
#endif /*USE_TOFU*/
|
#endif /*USE_TOFU*/
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case aListPackets:
|
|
||||||
default:
|
default:
|
||||||
|
if (!opt.quiet)
|
||||||
|
log_info (_("WARNING: no command supplied."
|
||||||
|
" Trying to guess what you mean ...\n"));
|
||||||
|
/*FALLTHU*/
|
||||||
|
case aListPackets:
|
||||||
if( argc > 1 )
|
if( argc > 1 )
|
||||||
wrong_args("[filename]");
|
wrong_args("[filename]");
|
||||||
/* Issue some output for the unix newbie */
|
/* Issue some output for the unix newbie */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user