diff --git a/flask/cli.py b/flask/cli.py index fc404fcd..7e219f1e 100644 --- a/flask/cli.py +++ b/flask/cli.py @@ -303,7 +303,7 @@ class AppGroup(click.Group): def decorator(f): if wrap_for_ctx: f = with_appcontext(f) - return click.Group.command(*args, **kwargs)(f) + return click.Group.command(self, *args, **kwargs)(f) return decorator