You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using click.Group you can customize options and arguments metavars but you cannot customize the COMMANDS autogenerated metavar in help output when you add commands to the group.
@click.group(options_metavar='<options>')defcli():
"""A random set of productivity shortcuts"""pass@cli.command(short_help='Some subcommand')defcommA():
click.echo('This is subcommand A')
It would output:
Usage: cli <options> COMMAND [ARGS]...
A random set of productivity shortcuts
Options:
--help Show this message and exit.
Commands:
comma Some subcommand
Resuling in inconsistencies between "", "COMMAND" and "[ARGS]". I would like to be able to produce:
Usage: cli <options>command [args]...
The text was updated successfully, but these errors were encountered:
When using
click.Group
you can customize options and arguments metavars but you cannot customize the COMMANDS autogenerated metavar in help output when you add commands to the group.It would output:
Resuling in inconsistencies between "", "COMMAND" and "[ARGS]". I would like to be able to produce:
The text was updated successfully, but these errors were encountered: