From 381b61bb4a14d06d1805888e6afea747eba78a97 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 20 Sep 2006 03:09:44 +0000 Subject: [PATCH] Make portageq exit successfully for -h or --help. svn path=/main/trunk/; revision=4484 --- bin/portageq | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/portageq b/bin/portageq index 4166425ec..46b0903dd 100755 --- a/bin/portageq +++ b/bin/portageq @@ -319,7 +319,10 @@ def usage(argv): print "\nRun portageq with --help for info" def main(): - if (len(sys.argv) < 2) or ("-h" in sys.argv or "--help" in sys.argv): + if "-h" in sys.argv or "--help" in sys.argv: + usage(sys.argv) + sys.exit(os.EX_OK) + elif len(sys.argv) < 2: usage(sys.argv) sys.exit(os.EX_USAGE) -- 2.26.2