From 1f124d85986d7ee091e82335ed49f1bd90c46ef3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 19 Sep 2006 22:01:20 +0000 Subject: [PATCH] Make portageq exit with nonzero status when called incorrectly. svn path=/main/trunk/; revision=4483 --- bin/portageq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.26.2