Skip to content

Commit a2b6b09

Browse files
committed
Address comments from Dustin
1 parent 6770c6c commit a2b6b09

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scm/doc/TechGuide/chap_quick.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ To see the full list of available options, use the ``--help`` flag:
501501
502502
The run script’s full set of options are described below, where optional abbreviations are included in brackets.
503503
If using the main branch, you should run the above command to ensure you have the most up-to-date list of options.
504-
There are no required arguments, but at least one of ``--case`` or ``--file`` must be specified.
505504

506505
- ``--case [-c]``
507506

scm/src/run_scm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@ def parse_arguments():
190190
bin_dir = args.bin_dir
191191
timestep = args.timestep
192192
mpi_command = args.mpi_command
193-
193+
194+
if not case and not file:
195+
parser.error('Either "--case" or "--file" must be specified. Use "--help" for more information.')
196+
194197
if not sdf:
195198
sdf = DEFAULT_SUITE
196199

0 commit comments

Comments
 (0)