feat: Added --verbose command line option to enable debug logs

This commit is contained in:
WerWolv
2024-03-10 15:22:14 +01:00
parent d1a59f8c1b
commit d4d1acb555
5 changed files with 27 additions and 5 deletions

View File

@@ -139,6 +139,10 @@ namespace hex::plugin::builtin {
ImHexApi::System::impl::addInitArgument("language", args[0]);
}
void handleVerboseCommand(const std::vector<std::string> &) {
hex::log::enableDebugLogging();
}
void handleHashCommand(const std::vector<std::string> &args) {
if (args.size() != 2) {
hex::log::println("usage: imhex --hash <algorithm> <file>");