# HG changeset patch # User Thomas De Schampheleire # Date 1583092263 -3600 # Node ID fb70be1e6729766f3c33cc055f48d357e6dbced8 # Parent fefd139b49805cb01839207bbc8594ebd0d09946 cli: fix '--full' option of index-create The option '-f' or '--full' is actually a flag, but the current declaration made click expect a value as argument. Instead, follow the click convention to allow --full and --no-full, to indicate it is a boolean flag, as we do in other places. diff -r fefd139b4980 -r fb70be1e6729 kallithea/bin/kallithea_cli_index.py --- a/kallithea/bin/kallithea_cli_index.py Wed Mar 04 13:47:15 2020 +0100 +++ b/kallithea/bin/kallithea_cli_index.py Sun Mar 01 20:51:03 2020 +0100 @@ -36,7 +36,7 @@ @click.option('--repo-location', help='Base path of repositories to index. Default: all') @click.option('--index-only', help='Comma-separated list of repositories to build index on. Default: all') @click.option('--update-only', help='Comma-separated list of repositories to re-build index on. Default: all') -@click.option('-f', '--full', 'full_index', help='Recreate the index from scratch') +@click.option('-f', '--full/--no-full', 'full_index', help='Recreate the index from scratch') def index_create(repo_location, index_only, update_only, full_index): """Create or update full text search index"""