Skip to content

Commit 102ba7f

Browse files
committed
Allowing Usage message to show directly if no argument was passed
1 parent 87f475e commit 102ba7f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cwltool/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ def load_job_order(args, t, stdin, print_input_deps=False, relative_deps=False,
432432
if toolparser:
433433
if args.tool_help:
434434
toolparser.print_help()
435+
print("this is print help")
435436
return 0
436437
cmd_line = vars(toolparser.parse_args(args.job_order))
437438
for record_name in records:
@@ -630,7 +631,8 @@ def main(argsl=None, # type: List[str]
630631
setattr(args, "workflow", "CWLFile")
631632
else:
632633
_logger.error("")
633-
_logger.error("CWL document required, try --help for details")
634+
_logger.error("CWL document required, No input file was passed\n")
635+
arg_parser().print_help()
634636
return 1
635637
if args.relax_path_checks:
636638
draft2tool.ACCEPTLIST_RE = draft2tool.ACCEPTLIST_EN_RELAXED_RE

0 commit comments

Comments
 (0)