Skip to content
Myr

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

3 files+5 added−17 removed

modified:docs/options.rst-8 removed
592 unmodified lines
593594 invoke(hello)595 invoke(hello, args=['--version'])596597.. admonition:: Callback Signature Changes597599 In Click 2.0 the signature for callbacks changed. For more600 information about these changes see :ref:`upgrade-to-2.0`.601598Yes Parameters599--------------600601For dangerous operations, it's very useful to be able to ask a user for
30 unmodified lines
632 @click.confirmation_option(prompt='Are you sure you want to drop the db?')633 def dropdb():634 click.echo('Dropped all tables!')635640.. admonition:: Callback Signature Changes636642 In Click 2.0 the signature for callbacks changed. For more643 information about these changes see :ref:`upgrade-to-2.0`.644637Values from Environment Variables638---------------------------------639640A very useful feature of Click is the ability to accept parameters from
287 unmodified lines
modified:src/click/core.py+3 added-5 removed
754 unmodified lines
755 arguments are forwarded as well but proper click parameters756 (options and click arguments) must be keyword arguments and Click757 will fill in defaults.758759 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`.763759 .. versionchanged:: 8.0760 All ``kwargs`` are tracked in :attr:`params` so they will be761 passed if :meth:`forward` is called at multiple levels.762763 .. 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 lines
modified:CHANGES.rst+2 added-4 removed
950 unmodified lines
951- 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.961962
170 unmodified lines