Merge pull request #3236 from lordmauve/no-cligroup-empty
Do not register empty CLI groups from Blueprint
This commit is contained in:
commit
91e53da054
2 changed files with 12 additions and 0 deletions
|
|
@ -218,6 +218,9 @@ class Blueprint(_PackageBoundObject):
|
|||
|
||||
cli_resolved_group = options.get("cli_group", self.cli_group)
|
||||
|
||||
if not self.cli.commands:
|
||||
return
|
||||
|
||||
if cli_resolved_group is None:
|
||||
app.cli.commands.update(self.cli.commands)
|
||||
elif cli_resolved_group is _sentinel:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue