Skip to content

Commit

Permalink
Properly handle --override and grab all the remaining commands when n…
Browse files Browse the repository at this point in the history
…o quotes are given
  • Loading branch information
Kidev committed Jan 11, 2025
1 parent 976998d commit 330683a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aqt/commercial.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _get_install_command(self, installer_path: Path) -> list[str]:

# When override is specified, only use the installer path and the override parameters
if self.override:
return cmd + self.override.split()
return cmd + self.override

# Add authentication if provided
if self.username and self.password:
Expand Down
1 change: 1 addition & 0 deletions aqt/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ def _set_install_qt_commercial_parser(self, install_qt_commercial_parser) -> Non
exclusive_group = install_qt_commercial_parser.add_mutually_exclusive_group()
exclusive_group.add_argument(
"--override",
nargs=argparse.REMAINDER,
help="Will ignore all other parameters and use everything after this parameter as "
"input for the official Qt installer",
)
Expand Down

0 comments on commit 330683a

Please sign in to comment.