Skip to content
Myr

Fixed forwarding compact code for 3.x

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent ab0b472 · Browse files · 2 files+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:click/core.py+2 added-1 removed
415 unmodified lines
416 return callback(*args, **kwargs)417 except TypeError as e:418 if not injected_arguments:419 raise420 if 'got multiple values for keyword argument' in str(e):420 if 'got multiple values for' in str(e):421 raise RuntimeError(422 'You called .invoke() on the context with a command '423 'but provided parameters as positional arguments. '424 'This is not supported but sometimes worked by chance '425 'in older versions of Click. To fix this see '426 'http://click.pocoo.org/upgrading/#upgrading-to-3.2')427 raise428429 def forward(*args, **kwargs):430 """Similar to :meth:`invoke` but fills in default keyword431 arguments from the current context if the other command expects
1144 unmodified lines
modified:CHANGES+3 added
6 unmodified lines
7-----------89(bugfix release, release date to be decided)1011- Fixed an issue with error reporting on Python 3 for invalid forwarding12 of commands.1314Version 3.215-----------1617(bugfix release, released on August 22nd 2014)
167 unmodified lines