This is experimental, which is why it's not on PyPI
Add (groups) to a list of click group commands.
In your click app:
import click
from click_groups import ClickCommandGroup
@click.group(cls=ClickAliasedGroup)
def cli():
pass
@cli.command(group=['group1', 'group2'])
def foo():
"""Run a command."""
click.echo('foo')
Will result in:
Usage: cli [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Group1 commands: foo Run a command. Group2 commands: foo Run a command.