summaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-02-13 13:09:51 +0100
committerWerner Koch <wk@gnupg.org>2017-02-13 20:13:05 +0100
commit810adfd47801fc01e45fb71af9f05c91f7890cdb (patch)
tree3d8940d791f64eb5cb1cf1e6f2c6c2e00f8ca8ad /g10
parentg13: Fix build on macOS. (diff)
downloadgnupg2-810adfd47801fc01e45fb71af9f05c91f7890cdb.tar.xz
gnupg2-810adfd47801fc01e45fb71af9f05c91f7890cdb.zip
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>
Diffstat (limited to 'g10')
-rw-r--r--g10/gpg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 66a2055b5..0c5a1677c 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -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 */