diff --git a/fsl/scripts/resample_image.py b/fsl/scripts/resample_image.py index 57a22143ae5e7fced8d3b510e89acf7da35d3aa4..151c301bf3af108485a67f3d21fd65df9efedca2 100644 --- a/fsl/scripts/resample_image.py +++ b/fsl/scripts/resample_image.py @@ -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)