Browse Source

Converted a leftover old-style click callback.

pull/1156/head
Armin Ronacher 10 years ago
parent
commit
66ef55ce0a
  1. 2
      flask/cli.py

2
flask/cli.py

@ -319,7 +319,7 @@ def script_info_option(*args, **kwargs):
raise TypeError('script_info_key not provided.') raise TypeError('script_info_key not provided.')
real_callback = kwargs.get('callback') real_callback = kwargs.get('callback')
def callback(ctx, value): def callback(ctx, param, value):
if real_callback is not None: if real_callback is not None:
value = real_callback(ctx, value) value = real_callback(ctx, value)
ctx.ensure_object(ScriptInfo).data[key] = value ctx.ensure_object(ScriptInfo).data[key] = value

Loading…
Cancel
Save