summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Options.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py
index 7b3ef109f..4ca9bbffc 100644
--- a/src/lib/Options.py
+++ b/src/lib/Options.py
@@ -44,10 +44,10 @@ class BasicOptionParser:
try:
opts, args = getopt.getopt(sys.argv[1:], self.shortopt, self.longopt)
except getopt.GetoptError, err:
- print "%s Usage:" % (self.name)
print err
+ print "%s Usage:" % (self.name)
print self.helpmsg
- raise OptionFailure, err
+ raise SystemExit, 1
if '-h' in sys.argv:
print "%s Usage:" % (self.name)
print self.helpmsg