From: Marius Mauch Date: Thu, 31 May 2007 01:26:33 +0000 (-0000) Subject: catch GetoptError X-Git-Tag: v2.2_pre1~1332 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=28b09fcc5b0b45fbea9725e68e87b58d49cbe197;p=portage.git catch GetoptError svn path=/main/trunk/; revision=6684 --- diff --git a/bin/ebuild b/bin/ebuild index 80feb3563..442dd4644 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -12,7 +12,11 @@ if len(sys.argv) <= 2: sys.exit(1) -opts, pargs = getopt.getopt(sys.argv[1:], '', ['debug', 'force']) +try: + opts, pargs = getopt.getopt(sys.argv[1:], '', ['debug', 'force']) +except getopt.GetoptError, e: + print e + sys.exit(1) debug = ("--debug",'') in opts force = ("--force",'') in opts