Merge pull request #64874 from RandomShaper/fix_cli_forwarding

This commit is contained in:
Rémi Verschelde 2022-08-25 17:55:46 +02:00 committed by GitHub
commit 03f6a9d88e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -725,11 +725,16 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
forwardable_cli_arguments[CLI_SCOPE_PROJECT].push_back(I->get());
}
if (I->get() == "--single-window" ||
I->get() == "--audio-driver" ||
if (I->get() == "--single-window") {
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
}
if (I->get() == "--audio-driver" ||
I->get() == "--display-driver" ||
I->get() == "--rendering-driver") {
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
if (I->next()) {
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->get());
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(I->next()->get());
}
}
#endif