Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions invokeai/frontend/cli/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class InvokeAIArgs:
@staticmethod
def parse_args() -> Optional[Namespace]:
"""Parse CLI args and store the result."""
InvokeAIArgs.args = _parser.parse_args()
# Avoid repeated attribute access for slight performance gain
args = _parser.parse_args()
InvokeAIArgs.args = args
InvokeAIArgs.did_parse = True
return InvokeAIArgs.args
return args