diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2014-05-02 02:43:33 +0100 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2014-05-02 02:43:33 +0100 |
commit | 981172fbb4c28454623b0e9741d970dbc547b856 (patch) | |
tree | 6a7ae802879a3c8e6d9a59e702b078efb35c6a5a /examples | |
parent | 5ffa7c850b17bb280ed78e5f0bf56c31eac733b2 (diff) | |
download | click-981172fbb4c28454623b0e9741d970dbc547b856.tar.gz |
Greatly refactored help formatting by moving it from optparse to a higher level.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/repo/repo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/repo/repo.py b/examples/repo/repo.py index 7e9f0c1..33b4400 100644 --- a/examples/repo/repo.py +++ b/examples/repo/repo.py @@ -30,6 +30,8 @@ def cli(ctx, repo_home): @click.argument('dest', required=False) @click.option('--shallow/--deep', default=False, help='Makes a checkout shallow or deep. Deep by default.') +@click.option('--with-readline/--without-readline', default=False, + help='Makes a checkout shallow or deep. Deep by default.') @pass_repo def clone(repo, src, dest, shallow): """Clones a repository. |