WebHost: disable abbreviations for argparse (#4352)
This commit is contained in:
parent
4a5ba756b6
commit
f79657b41a
|
@ -34,7 +34,7 @@ def get_app() -> "Flask":
|
|||
app.config.from_file(configpath, yaml.safe_load)
|
||||
logging.info(f"Updated config from {configpath}")
|
||||
# inside get_app() so it's usable in systems like gunicorn, which do not run WebHost.py, but import it.
|
||||
parser = argparse.ArgumentParser()
|
||||
parser = argparse.ArgumentParser(allow_abbrev=False)
|
||||
parser.add_argument('--config_override', default=None,
|
||||
help="Path to yaml config file that overrules config.yaml.")
|
||||
args = parser.parse_known_args()[0]
|
||||
|
|
Loading…
Reference in New Issue