From 4c9f899509972c06498674e9b4461f14e2b3a6ce Mon Sep 17 00:00:00 2001 From: Kara Date: Sun, 4 Sep 2022 22:48:37 -0400 Subject: [PATCH] Added --help argument --- src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index c348f03..1c9cc04 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; -} \ No newline at end of file +}