From 24f9df90b823ebda9203a1fa966698cc14020874 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 31 Aug 2025 15:11:35 +0200 Subject: [PATCH] impr: Added proper help text to ImHex updater --- main/updater/source/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/updater/source/main.cpp b/main/updater/source/main.cpp index 92e417af5..ab524d527 100644 --- a/main/updater/source/main.cpp +++ b/main/updater/source/main.cpp @@ -187,6 +187,13 @@ int main(int argc, char **argv) { hex::TaskManager::setMainThreadId(std::this_thread::get_id()); hex::log::impl::enableColorPrinting(); + if (argc == 1 || (argc == 2 && (std::string_view(argv[1]) == "--help" || std::string_view(argv[1]) == "-h"))) { + fmt::print("ImHex Updater - You should probably not run this on its own\n"); + fmt::print("Usage: updater \n"); + fmt::print(" version-type: The type of version to update to. Can be either 'stable' or 'nightly'.\n"); + return EXIT_SUCCESS; + } + // Check we have the correct number of arguments if (argc != 2) { hex::log::error("Failed to start updater: Invalid arguments");