Skip to content

Commit

Permalink
WebHost: disable abbreviations for argparse (#4352)
Browse files Browse the repository at this point in the history
(cherry picked from commit f79657b)
  • Loading branch information
Berserker66 committed Dec 10, 2024
1 parent b934061 commit 4e0b54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4e0b54d

Please sign in to comment.