Skip to content
Myr

Fixed the example i accidentally broke.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 8074246 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:examples/validation/validation.py+1 added-1 removed
25 unmodified lines
26@click.command()27@click.option('--count', default=2, callback=validate_count,28 help='A positive even number.')29@click.option('--foo', help='A mysterious parameter.')30@click.option('--url', help='A URL', type=URL)30@click.option('--url', help='A URL', type=URL())31@click.version_option()32def cli(count, foo, url):33 """Validation.34
10 unmodified lines