Skip to content
Snippets Groups Projects
Commit a53e041f authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Let argparse decide whether args are invalid

parent eafd08c2
No related branches found
No related tags found
No related merge requests found
...@@ -81,8 +81,6 @@ def parseArgs(args): ...@@ -81,8 +81,6 @@ def parseArgs(args):
if len(args) == 1: if len(args) == 1:
if args[0] == 'flirt': flirt.print_help() if args[0] == 'flirt': flirt.print_help()
elif args[0] == 'fnirt': fnirt.print_help() elif args[0] == 'fnirt': fnirt.print_help()
else: parser.error('Unknown sub-command: {}'.format(args[0]))
sys.exit(0)
args = parser.parse_args(args) args = parser.parse_args(args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment