我正在编写一个接受int和str类型参数的单击命令,我需要找出函数中传递的参数类型,如本例中所示: import click
@click.command()
@click.argument('num')
def command(num):
if type(num) is int:
click.echo("integer")
elif type(num) i
我使用click本地模块内,我想调整如何帮助显示: 目前输出与--help: Usage: __main__.py [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
foo Foo is a program very nice and pretty...