Skip to content

Customizing --help command for default groups #14

@viscrisn

Description

@viscrisn

Is there a way I can redirect one of the subcommand --help output to the group command's --help?
For example:

@click.group(cls=DefaultGroup, default='foo', default_if_no_args=True)
def cli():
    pass

@cli.command()
def foo():
    click.echo('foo')

cli --help should output foo --help description.

Is this possible to customize --help in this way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions