Add --help option

This commit is contained in:
[Assassin] 2025-06-19 00:07:42 +02:00
parent b2bc15baff
commit e5354943f0

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 {