Commit aafa8133 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: resample_image print help if no args passed

parent 38ebee6a
......@@ -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)
......
Supports Markdown
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