mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Make ImHex cli work more like other tools
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user