def test_nargs_default(runner):
    try:
        @click.command()
        @click.argument('src', nargs=-1, default=42)
        def copy(src):
            pass
    except __HOLE__ as e:
        assert 'nargs=-1' in str(e)
    else:
        assert False
dataset/ETHPy150Open pallets/click/tests/test_arguments.py/test_nargs_default