projects
/
python_utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2c43e31
)
Argparse choices wants a list, not a tuple.
author
Scott
<
[email protected]
>
Mon, 17 Jan 2022 23:52:24 +0000
(15:52 -0800)
committer
Scott
<
[email protected]
>
Mon, 17 Jan 2022 23:52:24 +0000
(15:52 -0800)
site_config.py
patch
|
blob
|
history
diff --git
a/site_config.py
b/site_config.py
index 492623f4b855fc990883a706db93dfd5615921d0..1281661abb6ac52d9fd6384916ce617731ad34b3 100644
(file)
--- 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__})',
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='?',
)
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.',
)
help='Where are we, HOUSE, CABIN? Overrides standard detection code.',
)