impr: Added proper help text to ImHex updater

This commit is contained in:
WerWolv
2025-08-31 15:11:35 +02:00
parent 4cfdbb8095
commit 24f9df90b8

View File

@@ -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 <version-type>\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");