diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-09-29 01:40:31 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-09-29 01:40:31 +0000 |
commit | 56ee3aa07a5b245adcee57f69dcb1ec53528cb17 (patch) | |
tree | 61650a233362b16362821b3fa3c4741e688fbce8 /src | |
parent | 5a9eee8f5948cece02819c4315d98cac4f5a219d (diff) | |
download | bcfg2-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.py | 4 |
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 |