core: Add --help option (#160)

This commit is contained in:
[Assassin] 2025-06-21 12:58:23 +02:00 committed by GitHub
parent cff17e8b52
commit 25578b7137
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -37,6 +37,19 @@ int main(int argc, char** argv, char** envp) {
return 1;
}
}
else if (arg == "--help" || arg == "-h") {
Debug::log(NONE,
"Usage: hypridle [options]\n"
"Options:\n"
" -v, --verbose Enable verbose logging\n"
" -q, --quiet Suppress all output except errors\n"
" -V, --version Show version information\n"
" -c, --config <path> Specify a custom config file path\n"
" -h, --help Show this help message"
);
return 0;
}
}
try {