aboutsummaryrefslogtreecommitdiff
path: root/modules/paths.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-28 10:48:33 +0300
committerGitHub <noreply@github.com>2023-01-28 10:48:33 +0300
commit60061eb8d44fe6dcbd846167e35b98e4fc113076 (patch)
treef3251ae18df43d0517758889f874b9e0f81e2dca /modules/paths.py
parentbd52a6d89970cca4f0f8b4275db895c99e173b3f (diff)
parent3752aad23d4be4522f9edf3fe79c1122fa5ad509 (diff)
Merge pull request #7303 from szhublox/pathshelp
don't replace regular --help with new paths.py parser help
Diffstat (limited to 'modules/paths.py')
-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