Skip to content

Commit

Permalink
option parsers: fix "-z" option help text (#5970)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders authored Feb 15, 2024
1 parent 4eb7d82 commit 5d01067
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cylc/flow/option_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,13 @@ class CylcOptionParser(OptionParser):
['-z', '--set-list', '--template-list'],
metavar='NAME=VALUE1,VALUE2,...',
help=(
'Set the value of a Jinja2 template variable in the'
' workflow definition as a comma separated'
' list of Python strings.'
' Values containing commas must be quoted.'
" e.g. '+s STR=a,b,c' => ['a', 'b', 'c']"
" or '+ s STR=a,\"b,c\"' => ['a', 'b,c']"
'A more convenient alternative to --set for defining a list'
' of strings. E.G.'
' "-z FOO=a,b,c" is shorthand for'
' "-s FOO=[\'a\',\'b\',\'c\']".'
' Commas can be present in values if quoted, e.g.'
' "-z FOO=a,\'b,c\'" is shorthand for'
' "-s FOO=[\'a\',\'b,c\']".'
+ CAN_BE_USED_MULTIPLE
+ NOTE_PERSIST_ACROSS_RESTARTS
),
Expand Down

0 comments on commit 5d01067

Please sign in to comment.