Skip to content

Commit 5d01067

Browse files
option parsers: fix "-z" option help text (#5970)
1 parent 4eb7d82 commit 5d01067

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cylc/flow/option_parsers.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,13 @@ class CylcOptionParser(OptionParser):
421421
['-z', '--set-list', '--template-list'],
422422
metavar='NAME=VALUE1,VALUE2,...',
423423
help=(
424-
'Set the value of a Jinja2 template variable in the'
425-
' workflow definition as a comma separated'
426-
' list of Python strings.'
427-
' Values containing commas must be quoted.'
428-
" e.g. '+s STR=a,b,c' => ['a', 'b', 'c']"
429-
" or '+ s STR=a,\"b,c\"' => ['a', 'b,c']"
424+
'A more convenient alternative to --set for defining a list'
425+
' of strings. E.G.'
426+
' "-z FOO=a,b,c" is shorthand for'
427+
' "-s FOO=[\'a\',\'b\',\'c\']".'
428+
' Commas can be present in values if quoted, e.g.'
429+
' "-z FOO=a,\'b,c\'" is shorthand for'
430+
' "-s FOO=[\'a\',\'b,c\']".'
430431
+ CAN_BE_USED_MULTIPLE
431432
+ NOTE_PERSIST_ACROSS_RESTARTS
432433
),

0 commit comments

Comments
 (0)