diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-28 07:48:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 07:48:33 +0000 |
commit | 60061eb8d44fe6dcbd846167e35b98e4fc113076 (patch) | |
tree | f3251ae18df43d0517758889f874b9e0f81e2dca | |
parent | bd52a6d89970cca4f0f8b4275db895c99e173b3f (diff) | |
parent | 3752aad23d4be4522f9edf3fe79c1122fa5ad509 (diff) | |
download | stable-diffusion-webui-gfx803-60061eb8d44fe6dcbd846167e35b98e4fc113076.tar.gz stable-diffusion-webui-gfx803-60061eb8d44fe6dcbd846167e35b98e4fc113076.tar.bz2 stable-diffusion-webui-gfx803-60061eb8d44fe6dcbd846167e35b98e4fc113076.zip |
Merge pull request #7303 from szhublox/pathshelp
don't replace regular --help with new paths.py parser help
-rw-r--r-- | modules/paths.py | 2 |
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
|