aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authoryfszzx <yfszzx@gmail.com>2022-10-25 10:48:07 +0000
committeryfszzx <yfszzx@gmail.com>2022-10-25 10:48:07 +0000
commit9ba439b53313ef78984dd8e39f25b34501188ee2 (patch)
tree03cf88609a261a93c192c94b143738db9a36de81 /modules/shared.py
parentff305acd51cc71c5eea8aee0f537a26a6d1ba2a1 (diff)
downloadstable-diffusion-webui-gfx803-9ba439b53313ef78984dd8e39f25b34501188ee2.tar.gz
stable-diffusion-webui-gfx803-9ba439b53313ef78984dd8e39f25b34501188ee2.tar.bz2
stable-diffusion-webui-gfx803-9ba439b53313ef78984dd8e39f25b34501188ee2.zip
need some rights for extensions
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 7b1fadf2..b5975707 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -82,7 +82,7 @@ parser.add_argument("--api", action='store_true', help="use api=True to launch t
parser.add_argument("--nowebui", action='store_true', help="use api=True to launch the api instead of the webui")
parser.add_argument("--ui-debug-mode", action='store_true', help="Don't load model to quickly launch UI")
parser.add_argument("--device-id", type=str, help="Select the default CUDA device to use (export CUDA_VISIBLE_DEVICES=0,1,etc might be needed before)", default=None)
-parser.add_argument("--administrator", type=str, help="Administrator rights", default=None)
+parser.add_argument("--administrator", action='store_true', help="Administrator rights", default=False)
cmd_opts = parser.parse_args()
restricted_opts = [