Skip to content

Commit

Permalink
Don't arbitrarily strip an argument from make_pass_decorator
Browse files Browse the repository at this point in the history
This fixes #786
  • Loading branch information
ericfrederich committed May 15, 2017
1 parent 6f4eb1e commit 97b05d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion click/decorators.py
Expand Up @@ -61,7 +61,7 @@ def new_func(*args, **kwargs):
raise RuntimeError('Managed to invoke callback without a '
'context object of type %r existing'
% object_type.__name__)
return ctx.invoke(f, obj, *args[1:], **kwargs)
return ctx.invoke(f, obj, *args, **kwargs)
return update_wrapper(new_func, f)
return decorator

Expand Down

0 comments on commit 97b05d3

Please sign in to comment.