From: Zac Medico Date: Wed, 20 Sep 2006 03:09:44 +0000 (-0000) Subject: Make portageq exit successfully for -h or --help. X-Git-Tag: v2.1.1-r1~51 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=381b61bb4a14d06d1805888e6afea747eba78a97;p=portage.git Make portageq exit successfully for -h or --help. svn path=/main/trunk/; revision=4484 --- 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)