mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-12-22 06:09:48 +01:00
Added --help argument
This commit is contained in:
parent
c9e6fa3c88
commit
4c9f899509
1 changed files with 5 additions and 2 deletions
|
@ -18,7 +18,10 @@ int main(int argc, char** argv, char** envp) {
|
|||
} else if (arg == "--no-fancy") {
|
||||
g_pHyprpicker->m_bFancyOutput = false;
|
||||
} else {
|
||||
Debug::log(NONE, "Unrecognized option %s", arg.c_str());
|
||||
std::cout << "Hyprpicker usage: hyprpicker [arg [...]].\n\nArguments:\n" <<
|
||||
" --format [fmt] | Specifies the output format (hex, rgb)\n" <<
|
||||
" --no-fancy | Disables the \"fancy\" (aka. colored) outputting\n" <<
|
||||
" --help | Show this help message\n";
|
||||
exit(1);
|
||||
}
|
||||
} else if (currentlyParsing == 1) {
|
||||
|
@ -40,4 +43,4 @@ int main(int argc, char** argv, char** envp) {
|
|||
g_pHyprpicker->init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue