impr: Make ImHex cli work more like other tools

This commit is contained in:
WerWolv
2025-01-28 18:41:25 +01:00
parent b8caf41423
commit 19a9786bbf
3 changed files with 12 additions and 9 deletions

View File

@@ -388,6 +388,9 @@ namespace hex::plugin::builtin {
void registerCommandForwarders() {
hex::subcommands::registerSubCommand("open", [](const std::vector<std::string> &args){
for (auto &arg : args) {
if (arg.starts_with("--"))
break;
RequestOpenFile::post(arg);
}
});