Commit 6d8117e9 authored by Jacob Durrant's avatar Jacob Durrant

argparse error throws exception.

parent be60afb9
......@@ -79,8 +79,9 @@ class MyParser(argparse.ArgumentParser):
"""
self.print_help()
sys.stderr.write('error: %s\n\n' % message)
sys.exit(2)
msg = "ERROR: %s\n\n" % message
print(msg)
raise Exception(msg)
def print_help(self, file=None):
"""Overwrite the default print_help function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment