diff --git a/docs/testing.rst b/docs/testing.rst index 01eef000f4..bd6b193349 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -420,7 +420,7 @@ command line. :: @app.cli.command('hello') @click.option('--name', default='World') - def hello_command(name) + def hello_command(name): click.echo(f'Hello, {name}!') def test_hello(): @@ -447,7 +447,7 @@ This is useful for testing complex validation rules and custom types. :: @app.cli.command('hello') @click.option('--name', default='World', callback=upper) - def hello_command(name) + def hello_command(name): click.echo(f'Hello, {name}!') def test_hello_params():