1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: --pl command line interface not working correctly

This commit is contained in:
WerWolv 2023-08-02 20:30:13 +02:00
parent 05ca498343
commit 79eb53eb0d

View File

@ -260,8 +260,9 @@ namespace hex::plugin::builtin {
}
void handlePatternLanguageCommand(const std::vector<std::string> &args) {
auto processedArgs = args;
processedArgs.insert(processedArgs.begin(), "imhex");
std::vector<std::string> processedArgs = args;
if (processedArgs.empty())
processedArgs.emplace_back("--help");
std::exit(pl::cli::executeCommandLineInterface(processedArgs));
}