Tweak callback evaluation order of eagerness options #137
Labels
🐛 bug
Something isn't working, or a fix is proposed
🙏 help wanted
I can't do this alone and need contributors
Eager parameters are evaluated in the order as they were provided on the command line by the user as explained in: https://click.palletsprojects.com/en/8.0.x/advanced/#callback-evaluation-order
This means a call to:
--no-color --version
will output a plain, uncoloured version string, while--version --no-color
will output a coloured string.This is highlighted by a test at:
click-extra/click_extra/tests/test_colorize.py
Lines 318 to 346 in d589907
It could be great to have
--no-color
(and itsNO_COLOR
env var) be respected whatever its order.The text was updated successfully, but these errors were encountered: