Merge pull request #12294 from AUTOMATIC1111/cmd_arg-disable-extensions

add cmd_arg --disable-extensions all extra
This commit is contained in:
AUTOMATIC1111
2023-08-04 07:26:34 +03:00
committed by GitHub
3 changed files with 20 additions and 10 deletions

View File

@@ -112,3 +112,5 @@ parser.add_argument('--subpath', type=str, help='customize the subpath for gradi
parser.add_argument('--add-stop-route', action='store_true', help='add /_stop route to stop server')
parser.add_argument('--api-server-stop', action='store_true', help='enable server stop/restart/kill via api')
parser.add_argument('--timeout-keep-alive', type=int, default=30, help='set timeout_keep_alive for uvicorn')
parser.add_argument("--disable-all-extensions", action='store_true', help="prevent all extensions from running regardless of any other settings", default=False)
parser.add_argument("--disable-extra-extensions", action='store_true', help=" prevent all extensions except built-in from running regardless of any other settings", default=False)