From c03dfd0aa185cf7f79766de56582ed98307b01d3 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Tue, 20 Sep 2022 12:11:09 +1200 Subject: [PATCH] Fix running autosubmit with no args --- autosubmit/autosubmit.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autosubmit/autosubmit.py b/autosubmit/autosubmit.py index cec18bced..b9c210f42 100644 --- a/autosubmit/autosubmit.py +++ b/autosubmit/autosubmit.py @@ -596,6 +596,9 @@ class Autosubmit: subparsers.add_parser('changelog', description='show changelog') args = parser.parse_args() + if args.command is None: + parser.print_help() + parser.exit() except Exception as e: if type(e) is SystemExit: #todo check -- GitLab