Hi,
I was just hoping to clarify my understanding of the precendence of template variables set with -s
and -O
.
Initially I had expected that the precedence would depend on the ordering of the -s
and -O
options in the cylc command, but that does not appear to be the case.
E.g., if in a file opt/rose-suite-common.conf
I have VAR_A="set in opt conf"
, and I run
cylc vip -O common -s 'VAR_A="set with -s"' .
or
cylc vip -s 'VAR_A="set with -s"' -O common .
In both cases I see the message;
WARNING - Overriding VAR_A: set in opt conf -> set with -s
, and the template variable is set to the -s
setting.
So, am I understanding correctly that -s
/-S
will always take precendence over optional config? I think that I’ve probably answered my own question with the example above, but also wanted to confirm that this is the intended behaviour.
Note, in practice I am actually using -S
due to reload: allow template variables to change on reload · Issue #6045 · cylc/cylc-flow · GitHub), and when using -S
there is no override warning message).