diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-18 20:06:49 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-18 20:06:49 +0000 |
commit | cfb6cc8ce50b528ef9850ac671c3523121f70165 (patch) | |
tree | c5a0fb73a194fc2457c276d194de434a38021db7 /modules/shared.py | |
parent | f3965cce01fc1d39cc5b9cde8ea3d74467ade8f8 (diff) | |
download | stable-diffusion-webui-gfx803-cfb6cc8ce50b528ef9850ac671c3523121f70165.tar.gz stable-diffusion-webui-gfx803-cfb6cc8ce50b528ef9850ac671c3523121f70165.tar.bz2 stable-diffusion-webui-gfx803-cfb6cc8ce50b528ef9850ac671c3523121f70165.zip |
replace argparse.BooleanOptionalAction with 'store_true'
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py index e515fe97..ac5bf466 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -49,7 +49,7 @@ parser.add_argument("--gradio-debug", action='store_true', help="launch gradio parser.add_argument("--gradio-auth", type=str, help='set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"', default=None)
parser.add_argument("--opt-channelslast", action='store_true', help="change memory type for stable diffusion to channels last")
parser.add_argument("--styles-file", type=str, help="filename to use for styles", default=os.path.join(script_path, 'styles.csv'))
-parser.add_argument("--autolaunch", action=argparse.BooleanOptionalAction, help="open the webui URL in the system's default browser upon launch", default=False)
+parser.add_argument("--autolaunch", action='store_true', help="open the webui URL in the system's default browser upon launch", default=False)
cmd_opts = parser.parse_args()
if cmd_opts.opt_split_attention:
|