Skip to content

Commit

Permalink
cylc play: add suggestion for --upgrade in non-interactive termin…
Browse files Browse the repository at this point in the history
…al (#5535)

add message on how to use --upgrade
  • Loading branch information
wxtim authored May 18, 2023
1 parent a30f1d1 commit 31b6916
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cylc/flow/scheduler_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ def _version_check(
process=str.lower,
)
# we are in non-interactive mode, abort abort abort
print('Use "--upgrade" to upgrade the workflow.', file=sys.stderr)
return False
elif itt > 2 and this > that:
# restart would INCREASE the Cylc version in a little way
Expand Down

0 comments on commit 31b6916

Please sign in to comment.