Merge pull request #6 from Kara-Zor-El/main

Add `--help` argument
This commit is contained in:
Vaxry 2022-09-05 13:17:17 +02:00 committed by GitHub
commit 69dc644b9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}