Skip to content

Commit

Permalink
Cylc pause help fix (#5685)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver authored Aug 14, 2023
1 parent 0fa96d0 commit c452aff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changes.d/5685.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix "cylc pause" command help (it targets workflows, not tasks, but was
printing task-matching documentation as well).
7 changes: 4 additions & 3 deletions cylc/flow/scripts/pause.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Pause a workflow.
This suspends submission of tasks.
This suspends submission of all tasks in a workflow.
Examples:
# pause my_flow
Expand All @@ -29,7 +29,8 @@
# resume my_flow
$ cylc play my_flow
Not to be confused with `cylc hold`.
(Not to be confused with `cylc hold` which suspends submission of individual
tasks within a workflow).
"""

from functools import partial
Expand Down Expand Up @@ -64,7 +65,7 @@ def get_option_parser() -> COP:
parser = COP(
__doc__,
comms=True,
multitask=True,
multitask=False,
multiworkflow=True,
argdoc=[WORKFLOW_ID_MULTI_ARG_DOC],
)
Expand Down

0 comments on commit c452aff

Please sign in to comment.