[Pkg-gnupg-commit] [gnupg2] 71/166: gpg: Print a warning if no command has been given.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Mar 16 22:33:06 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gnupg2.

commit 810adfd47801fc01e45fb71af9f05c91f7890cdb
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Feb 13 13:09:51 2017 +0100

    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 at gnupg.org>
---
 g10/gpg.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/g10/gpg.c b/g10/gpg.c
index 66a2055..0c5a167 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 */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list