Do not register empty CLI groups from Blueprint

(Fixes #3224)
This commit is contained in:
Daniel Pope 2019-05-31 16:48:32 +01:00
parent 14e9291380
commit f25b5000fd
2 changed files with 12 additions and 0 deletions

View file

@ -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: