changeset 8279:fb70be1e6729

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.
author Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
date Sun, 01 Mar 2020 20:51:03 +0100
parents fefd139b4980
children 37ec17c1344c
files kallithea/bin/kallithea_cli_index.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"""