mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
fix: --pl subcommand not working correctly anymore
This commit is contained in:
@@ -53,7 +53,7 @@ namespace hex::subcommands {
|
||||
while (argsIter != args.end()) {
|
||||
const std::string &arg = *argsIter;
|
||||
|
||||
if (!currentSubCommandArgs.empty() && arg.starts_with("--")) {
|
||||
if (!currentSubCommandArgs.empty() && arg.starts_with("--") && !(currentSubCommand.has_value() && currentSubCommand->type == SubCommand::Type::SubCommand)) {
|
||||
// Save command to run
|
||||
if (currentSubCommand) {
|
||||
subCommands.emplace_back(*currentSubCommand, currentSubCommandArgs);
|
||||
|
||||
Reference in New Issue
Block a user