From 0e51f537296a39a7a6e0cc998dceec3d2b49b1f7 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 cb175746..72963566 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 e610475b..c6014e57 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