aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorConnum <connum@gmail.com>2022-09-18 19:00:46 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-18 19:39:34 +0000
commitf3965cce01fc1d39cc5b9cde8ea3d74467ade8f8 (patch)
tree64d159f707fc64490b80a252b4805c5a8d2d3e4b /modules/shared.py
parent8e3caace7445f8373c950edb6e414c4cdc75823b (diff)
downloadstable-diffusion-webui-gfx803-f3965cce01fc1d39cc5b9cde8ea3d74467ade8f8.tar.gz
stable-diffusion-webui-gfx803-f3965cce01fc1d39cc5b9cde8ea3d74467ade8f8.tar.bz2
stable-diffusion-webui-gfx803-f3965cce01fc1d39cc5b9cde8ea3d74467ade8f8.zip
added command line argument --autolaunch to open the webui URL in the system's default browser upon launch (implements #274)
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 78de9f9e..e515fe97 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -49,6 +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)
cmd_opts = parser.parse_args()
if cmd_opts.opt_split_attention: