mirror of
https://github.com/hyprwm/hypridle.git
synced 2026-05-05 12:47:59 +02:00
core: Add --help option (#160)
This commit is contained in:
parent
cff17e8b52
commit
25578b7137
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