我刚开始使用python click模块,我希望自动调出'--help'函数,随时点击引发错误。python点击返回帮助菜单
test.py
@click.command()
@click.option('--count', default=1, help='Number of greetings.')
@click.option('--name', default=Adam,
help='The person to great.')
def test(name):
print name
如果我是运行在命令行test.py --no_such_thing脚本。有没有一种方法我能得到--help上来,而不是正常的 :错误没有选项如果你使用点击4.0+ --no_such_thing