From: Zac Medico Date: Tue, 19 Sep 2006 22:01:20 +0000 (-0000) Subject: Make portageq exit with nonzero status when called incorrectly. X-Git-Tag: v2.1.1-r1~52 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1f124d85986d7ee091e82335ed49f1bd90c46ef3;p=portage.git Make portageq exit with nonzero status when called incorrectly. svn path=/main/trunk/; revision=4483 --- diff --git a/bin/portageq b/bin/portageq index f9527a253..4166425ec 100755 --- a/bin/portageq +++ b/bin/portageq @@ -321,7 +321,7 @@ def usage(argv): def main(): if (len(sys.argv) < 2) or ("-h" in sys.argv or "--help" in sys.argv): usage(sys.argv) - sys.exit() + sys.exit(os.EX_USAGE) cmd = sys.argv[1] try: @@ -336,7 +336,7 @@ def main(): function(sys.argv[2:]) except KeyError: usage(sys.argv) - sys.exit() + sys.exit(os.EX_USAGE) main()