diff --git a/aqt/commercial.py b/aqt/commercial.py index 79e3b3ed..50557d04 100644 --- a/aqt/commercial.py +++ b/aqt/commercial.py @@ -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: diff --git a/aqt/installer.py b/aqt/installer.py index 0416fad5..3d918f8a 100644 --- a/aqt/installer.py +++ b/aqt/installer.py @@ -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", )