From 086528858135fea54d8daa3aabd3b6f65cb8170d Mon Sep 17 00:00:00 2001 From: Fouton Date: Fri, 12 Mar 2021 16:53:08 -0500 Subject: [PATCH] Add files via upload --- CLI.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CLI.py b/CLI.py index 6f9bd097..a89c4a5a 100644 --- a/CLI.py +++ b/CLI.py @@ -16,6 +16,7 @@ class ArgumentDefaultsHelpFormatter(argparse.RawTextHelpFormatter): def _get_help_string(self, action): return textwrap.dedent(action.help) + def parse_cli(argv, no_defaults=False): def defval(value): return value if not no_defaults else None @@ -109,8 +110,8 @@ def parse_cli(argv, no_defaults=False): getattr(ret, name)[player] = value return ret - - + + def apply_settings_file(settings, settings_path): if os.path.exists(settings_path): with open(settings_path) as json_file: @@ -120,7 +121,6 @@ def apply_settings_file(settings, settings_path): return settings - def parse_settings(): # set default settings settings = {