Skip to content

Commit e0d38fb

Browse files
authored
Accept click.command objects as command (#50)
isinstance check of click.Group did not allow click.Command objects
1 parent c53832f commit e0d38fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyodide_cli/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def register_plugins():
170170
getattr(module, "__doc__", ""), origin_text
171171
)
172172

173-
if isinstance(module, click.Group):
173+
if isinstance(module, click.Command):
174174
cmd = module
175175
elif isinstance(module, typer.Typer):
176176
cmd = typer.main.get_command(module)

0 commit comments

Comments
 (0)