Merge pull request #78 from larsimmisch/master

Fix subtle bug in new click parameter handling
This commit is contained in:
Matthew Scragg 2015-09-24 14:27:07 -07:00
commit 08525c10ba

View file

@ -61,7 +61,7 @@ def prompt_and_invoke(ctx, fn):
for p in fn.params: for p in fn.params:
v = click.prompt(p.prompt, p.default, p.hide_input, v = click.prompt(p.prompt, p.default, p.hide_input,
p.confirmation_prompt, p.type) p.confirmation_prompt, p.type)
kw[p.name.upper()] = v kw[p.name] = v
ctx.invoke(fn, **kw) ctx.invoke(fn, **kw)