From: Scott Date: Mon, 17 Jan 2022 23:52:24 +0000 (-0800) Subject: Argparse choices wants a list, not a tuple. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=3ff520c22a4fcba0590400a20f822ad096927f6b;hp=2c43e31aae1138f79c30619cde25746e41390152;p=python_utils.git Argparse choices wants a list, not a tuple. --- diff --git a/site_config.py b/site_config.py index 492623f..1281661 100644 --- a/site_config.py +++ b/site_config.py @@ -13,14 +13,14 @@ logger = logging.getLogger(__name__) args = config.add_commandline_args( f'Global Site Config ({__file__})', - f'Args related to global site-specific configuration' + 'Args related to global site-specific configuration' ) args.add_argument( '--site_config_override_location', default='NONE', const='NONE', nargs='?', - choices=('HOUSE', 'CABIN', 'NONE'), + choices=['HOUSE', 'CABIN', 'NONE'], help='Where are we, HOUSE, CABIN? Overrides standard detection code.', )