From 330683a9d9a632dda1dee95b0ddc5055053ed503 Mon Sep 17 00:00:00 2001 From: Alexandre 'Kidev' Poumaroux <1204936+Kidev@users.noreply.github.com> Date: Sat, 11 Jan 2025 23:27:15 +0100 Subject: [PATCH] Properly handle --override and grab all the remaining commands when no quotes are given --- aqt/commercial.py | 2 +- aqt/installer.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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", )