Skip to content
Snippets Groups Projects
Commit 77bdc0a6 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

fsl.__init__ handles being called with no arguments

parent 4e6560d8
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,12 @@ def parseArgs(argv, allTools): ...@@ -196,6 +196,12 @@ def parseArgs(argv, allTools):
help='Run wx inspection tool') help='Run wx inspection tool')
parser.add_argument('tool', help='FSL program to run') parser.add_argument('tool', help='FSL program to run')
# No arguments at all?
# I'm not a mind-reader
if len(argv) == 0:
parser.print_help()
sys.exit(1)
# find the index of the first positional # find the index of the first positional
# argument, i.e. the tool name # argument, i.e. the tool name
i = -1 i = -1
......
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