aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMackerel <mackerel@chickatrice.com>2023-01-28 02:44:12 -0500
committerMackerel <mackerel@chickatrice.com>2023-01-28 02:44:12 -0500
commit3752aad23d4be4522f9edf3fe79c1122fa5ad509 (patch)
tree6ad19972b0e96a767578709432df270f5df979a6
parent7d1f2a3a495327341ef1b3238347864845799bb6 (diff)
don't replace regular --help with new paths.py parser help
-rw-r--r--modules/paths.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/paths.py b/modules/paths.py
index 08e6f9b9..d991cc71 100644
--- a/modules/paths.py
+++ b/modules/paths.py
@@ -6,7 +6,7 @@ import modules.safe
script_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
# Parse the --data-dir flag first so we can use it as a base for our other argument default values
-parser = argparse.ArgumentParser()
+parser = argparse.ArgumentParser(add_help=False)
parser.add_argument("--data-dir", type=str, default=os.path.dirname(os.path.dirname(os.path.realpath(__file__))), help="base path where all user data is stored",)
cmd_opts_pre = parser.parse_known_args()[0]
data_path = cmd_opts_pre.data_dir