Skip to content

Commit 9e69b34

Browse files
committed
Add default to distribute option
1 parent a0ed9b3 commit 9e69b34

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/manpage.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Options controlling ReFrame execution
379379

380380
.. versionadded:: 3.2
381381

382-
.. option:: --distribute=NODESTATE
382+
.. option:: --distribute[=NODESTATE]
383383

384384
Distribute the selected tests on all the nodes in state ``NODESTATE`` in their respective valid partitions.
385385

@@ -397,6 +397,8 @@ Options controlling ReFrame execution
397397
The states of the nodes will be determined once, before beginning the
398398
execution of the tests so it might be different in the time of the submission of the tests.
399399

400+
If ``NODESTATE`` is not passed it will take ``idle`` as default.
401+
400402
.. versionadded:: 3.11.0
401403

402404
.. option:: --exec-policy=POLICY

reframe/frontend/cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,10 @@ def main():
372372
default=[], help='Disable a pipeline hook for this run'
373373
)
374374
run_options.add_argument(
375-
'--distribute', action='store', default=None, metavar='{all|STATE}',
375+
'--distribute', action='store', metavar='{all|STATE}',
376+
nargs='?', const='idle',
376377
help=('Distribute the selected single-node jobs on every node that'
377-
'is in STATE')
378+
'is in STATE (default: "idle"')
378379
)
379380
run_options.add_argument(
380381
'--exec-policy', metavar='POLICY', action='store',

0 commit comments

Comments
 (0)