gpg: Print a warning if no command has been given.
authorWerner Koch <wk@gnupg.org>
Mon, 13 Feb 2017 12:09:51 +0000 (13:09 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 13 Feb 2017 19:13:05 +0000 (20:13 +0100)
* g10/gpg.c (main): Print in the default case.
--

GnuPG-bug-id: 2943
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/gpg.c

index 66a2055..0c5a167 100644 (file)
--- 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 */