diff options
author | Mackerel <mackerel@chickatrice.com> | 2023-01-28 07:44:12 +0000 |
---|---|---|
committer | Mackerel <mackerel@chickatrice.com> | 2023-01-28 07:44:12 +0000 |
commit | 3752aad23d4be4522f9edf3fe79c1122fa5ad509 (patch) | |
tree | 6ad19972b0e96a767578709432df270f5df979a6 /modules/paths.py | |
parent | 7d1f2a3a495327341ef1b3238347864845799bb6 (diff) | |
download | stable-diffusion-webui-gfx803-3752aad23d4be4522f9edf3fe79c1122fa5ad509.tar.gz stable-diffusion-webui-gfx803-3752aad23d4be4522f9edf3fe79c1122fa5ad509.tar.bz2 stable-diffusion-webui-gfx803-3752aad23d4be4522f9edf3fe79c1122fa5ad509.zip |
don't replace regular --help with new paths.py parser help
Diffstat (limited to 'modules/paths.py')
-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
|