Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
aafa8133
Commit
aafa8133
authored
May 08, 2019
by
Paul McCarthy
🚵
Browse files
RF: resample_image print help if no args passed
parent
38ebee6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/scripts/resample_image.py
View file @
aafa8133
...
...
@@ -103,6 +103,10 @@ def parseArgs(argv):
for
a
in
(
'shape'
,
'dim'
,
'reference'
):
dest
.
add_argument
(
*
ARGS
[
a
],
help
=
HELPS
[
a
],
**
OPTS
[
a
])
if
len
(
argv
)
==
0
:
parser
.
print_help
()
sys
.
exit
(
0
)
args
=
parser
.
parse_args
(
argv
)
args
.
interp
=
INTERPS
[
args
.
interp
]
args
.
dtype
=
DTYPES
.
get
(
args
.
dtype
,
args
.
input
.
dtype
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment