From adca29b79a84424a9e2e58132b8b43b943bf99c5 Mon Sep 17 00:00:00 2001 From: "Michael J. Kavulich, Jr" Date: Tue, 13 Aug 2024 11:00:26 -0500 Subject: [PATCH] Address comments from Dustin --- scm/doc/TechGuide/chap_quick.rst | 1 - scm/src/run_scm.py | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scm/doc/TechGuide/chap_quick.rst b/scm/doc/TechGuide/chap_quick.rst index cb1757461..729635666 100644 --- a/scm/doc/TechGuide/chap_quick.rst +++ b/scm/doc/TechGuide/chap_quick.rst @@ -501,7 +501,6 @@ To see the full list of available options, use the ``--help`` flag: The run script’s full set of options are described below, where optional abbreviations are included in brackets. If using the main branch, you should run the above command to ensure you have the most up-to-date list of options. -There are no required arguments, but at least one of ``--case`` or ``--file`` must be specified. - ``--case [-c]`` diff --git a/scm/src/run_scm.py b/scm/src/run_scm.py index 93f09435f..76ffd51f3 100755 --- a/scm/src/run_scm.py +++ b/scm/src/run_scm.py @@ -195,6 +195,9 @@ def parse_arguments(): mpi_command = args.mpi_command stop_on_error = args.stop_on_error + if not case and not file: + parser.error('Either "--case" or "--file" must be specified. Use "--help" for more information.') + if not sdf: sdf = DEFAULT_SUITE