forked from Hanabi/hanabi-league
change default: fetch variant info
This commit is contained in:
parent
3e5cf7734c
commit
f90a98765b
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -34,6 +34,7 @@ def subcommand_init(force: bool, fetch_variants: bool):
|
|||
if fetch_variants:
|
||||
database.fetch_and_initialize_variants()
|
||||
database.initialize_variant_base_ratings()
|
||||
logger.info("Successfully initialized variants and base ratings.")
|
||||
|
||||
|
||||
def subcommand_generate_config():
|
||||
|
@ -52,7 +53,7 @@ def get_parser() -> argparse.ArgumentParser:
|
|||
|
||||
init_parser = subparsers.add_parser('init', help='Initialize database.')
|
||||
init_parser.add_argument('--force', '-f', help='Force initialization (Drops existing tables)', action='store_true')
|
||||
init_parser.add_argument('--fetch-variants', '-v', help='Fetch and initialize variants', action='store_true')
|
||||
init_parser.add_argument('--no-fetch-variants', '-n', help='Do not fetch and initialize variants', action='store_false')
|
||||
|
||||
subparsers.add_parser('generate-config', help='Generate config file at default location')
|
||||
|
||||
|
|
Loading…
Reference in a new issue