summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild6
1 files changed, 5 insertions, 1 deletions
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