From 28b09fcc5b0b45fbea9725e68e87b58d49cbe197 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Thu, 31 May 2007 01:26:33 +0000 Subject: [PATCH] catch GetoptError svn path=/main/trunk/; revision=6684 --- bin/ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.26.2