summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-09-29 01:40:31 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-09-29 01:40:31 +0000
commit56ee3aa07a5b245adcee57f69dcb1ec53528cb17 (patch)
tree61650a233362b16362821b3fa3c4741e688fbce8 /src
parent5a9eee8f5948cece02819c4315d98cac4f5a219d (diff)
downloadbcfg2-56ee3aa07a5b245adcee57f69dcb1ec53528cb17.tar.gz
bcfg2-56ee3aa07a5b245adcee57f69dcb1ec53528cb17.tar.bz2
bcfg2-56ee3aa07a5b245adcee57f69dcb1ec53528cb17.zip
Fix option parse failures (Resolves Ticket #134)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2345 ce84e21b-d406-0410-9b95-82705330c041
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