Skip to content

Commit

Permalink
alternative solution for #8089
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Mar 11, 2023
1 parent 94ffa9f commit 27e319d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@
script_loading.preload_extensions(extensions.extensions_dir, parser)
script_loading.preload_extensions(extensions.extensions_builtin_dir, parser)

cmd_opts = parser.parse_args()
if os.environ.get('IGNORE_CMD_ARGS_ERRORS', None) is None:
cmd_opts = parser.parse_args()
else:
cmd_opts, _ = parser.parse_known_args()

restricted_opts = {
"samples_filename_pattern",
Expand Down

0 comments on commit 27e319d

Please sign in to comment.