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

RF: resample_image print help if no args passed

parent 38ebee6a
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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