Is there a way to get separate detailed help for click commands? For example to print the options/arguments for that command.
Example for this cli:
import click
@click.group()
def cli():
pass
@cli.command()
@click.argument('arg1')
@click.option('--option1', default=1)
def cmd1(arg1):
print(arg1)
if __name__ == '__main__':
cli()
The default help only gives this:
> python cli.py --help
Usage: cli.py [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
cmd1
I would like something like this:
> python cli.py --help cmd1
...
Command cmd1
Arguments:
arg1
Options:
--option1
....
Is this possible?