We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9641f07 commit a94e767Copy full SHA for a94e767
flask/cli.py
@@ -226,6 +226,14 @@ def decorator(f):
226
return click.Group.command(self, *args, **kwargs)(f)
227
return decorator
228
229
+ def group(self, *args, **kwargs):
230
+ """This works exactly like the method of the same name on a regular
231
+ :class:`click.Group` but it defaults the group class to
232
+ :class:`AppGroup`.
233
+ """
234
+ kwargs.setdefault('cls', AppGroup)
235
+ return click.Group.group(self, *args, **kwargs)
236
+
237
238
class FlaskGroup(AppGroup):
239
"""Special subclass of the the :class:`AppGroup` group that supports
0 commit comments