diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-05-31 20:33:25 +0600 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-05-31 20:33:25 +0600 |
commit | 830ab09fa3f219555c102dbff0ddac3b993c3da8 (patch) | |
tree | b4a8ec31345bdacaed4821e9e76b762d501b9eed /docs/upgrading.rst | |
parent | 6eeead5bcfdf2f45c5b3be3db1fce04b08d5af9f (diff) | |
download | click-830ab09fa3f219555c102dbff0ddac3b993c3da8.tar.gz |
Changed upgrade note to be more correct.
Diffstat (limited to 'docs/upgrading.rst')
-rw-r--r-- | docs/upgrading.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/upgrading.rst b/docs/upgrading.rst index 6629845..51f47e9 100644 --- a/docs/upgrading.rst +++ b/docs/upgrading.rst @@ -16,8 +16,9 @@ callbacks. Before 2.0 the callback was invoked with ``(ctx, value)`` whereas now it's ``(ctx, param, value)``. This change was necessary as it otherwise made reusing callbacks too complicated. -To ease the transition click will still accept old callbacks but it will -issue a warning to stderr to encourage you to upgrade. +To ease the transition click will still accept old callbacks. Starting +with Click 3.0 it will start to issue a warning to stderr to encourage you +to upgrade. In case you want to support both click 1.0 and click 2.0 you can make a simple decorator that adjusts the signatures:: |