Commit debc1f59 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

make the basic command line clean

parent 3afa3927
......@@ -130,6 +130,10 @@ if __name__ == '__main__':
sub_parser.set_defaults(cmd_object=instance.__class__.__name__)
args = vars(parser.parse_args())
if not "cmd_object" in args:
print(parser.format_help())
parser.exit(0, "")
if args["cmd_object"] in wf_classes:
wfmanager.run_workflow(args["cmd_object"], args)
elif args["cmd_object"] == "rerun":
......
Markdown is supported
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