我正在尝试对多个文件使用单击。例如:
@cli.command("test")
@click.argument('input', type=click.File('rb'))
def test(input):
with click.progressbar(input, label='READING') as bar:
for x in bar:
pass
当我做这样的事情时:
script test ~/ololo/*
我得到:
Error: Got unexpected extra arguments ( ... listing all files in folder ...)