mirror of
https://github.com/hyprwm/hypridle.git
synced 2025-12-24 19:10:03 +01:00
Add --help option
This commit is contained in:
parent
b2bc15baff
commit
e5354943f0
1 changed files with 13 additions and 0 deletions
13
src/main.cpp
13
src/main.cpp
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue