remove old upgrading notes
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by David Lord · committed by David Lord · parent 883feba · Browse files · 3 files·+5 added−17 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+5 added−17 removed
- other:+5 added−17 removed
Provenance
- Commit
a327751- Tree
a1bb9f5- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
883feba
3 files changed+5 added−17 removed
modified:docs/options.rst-8 removed
592 unmodified lines593 594 invoke(hello)595 invoke(hello, args=['--version'])596 597-.. admonition:: Callback Signature Changes597 599- In Click 2.0 the signature for callbacks changed. For more600- information about these changes see :ref:`upgrade-to-2.0`.601-598 Yes Parameters599 --------------600 601 For dangerous operations, it's very useful to be able to ask a user for30 unmodified lines632 @click.confirmation_option(prompt='Are you sure you want to drop the db?')633 def dropdb():634 click.echo('Dropped all tables!')635 640-.. admonition:: Callback Signature Changes636 642- In Click 2.0 the signature for callbacks changed. For more643- information about these changes see :ref:`upgrade-to-2.0`.644-637 Values from Environment Variables638 ---------------------------------639 640 A very useful feature of Click is the ability to accept parameters from287 unmodified linesmodified:src/click/core.py+3 added-5 removed
754 unmodified lines755 arguments are forwarded as well but proper click parameters756 (options and click arguments) must be keyword arguments and Click757 will fill in defaults.758 759- Note that before Click 3.2 keyword arguments were not properly filled760- in against the intention of this code and no context was created. For761- more information about this change and why it was done in a bugfix762- release see :ref:`upgrade-to-3.2`.763-759 .. versionchanged:: 8.0760 All ``kwargs`` are tracked in :attr:`params` so they will be761 passed if :meth:`forward` is called at multiple levels.762+763+ .. versionchanged:: 3.2764+ A new context is created, and missing arguments use default values.765 """766 if isinstance(__callback, Command):767 other_cmd = __callback768 2229 unmodified linesmodified:CHANGES.rst+2 added-4 removed
950 unmodified lines951 - Added missing ``err`` parameter forwarding to the ``secho``952 function.953 - Fixed default parameters not being handled properly by the context954 invoke method. This is a backwards incompatible change if the955- function was used improperly. See :ref:`upgrade-to-3.2` for more956- information.955+ function was used improperly.956 - Removed the ``invoked_subcommands`` attribute largely. It is not957 possible to provide it to work error free due to how the parsing959- works so this API has been deprecated. See :ref:`upgrade-to-3.2` for960- more information.958+ works so this API has been deprecated.959 - Restored the functionality of ``invoked_subcommand`` which was960 broken as a regression in 3.1.961 962 170 unmodified lines