(value)
| 294 | @app.cli.command() |
| 295 | @click.argument("value", callback=_param_cb) |
| 296 | def check(value): |
| 297 | app = click.get_current_context().obj.load_app() |
| 298 | # the loaded app should be the same as current_app |
| 299 | same_app = current_app._get_current_object() is app |
| 300 | return same_app, value |
| 301 | |
| 302 | cli = FlaskGroup(create_app=lambda: app) |
| 303 | result = runner.invoke(cli, ["check", "x"], standalone_mode=False) |