From d02ba422daae97498ffe6cdf84914b74ddf1fd44 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 10 Dec 2023 19:30:14 +0000 Subject: [PATCH] hyprpm: guard empty command fixes #4114 --- hyprpm/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hyprpm/src/main.cpp b/hyprpm/src/main.cpp index e6191e66..7bc44141 100644 --- a/hyprpm/src/main.cpp +++ b/hyprpm/src/main.cpp @@ -58,6 +58,11 @@ int main(int argc, char** argv, char** envp) { } } + if (command.empty()) { + std::cout << HELP; + return 0; + } + g_pPluginManager = std::make_unique(); g_pPluginManager->m_bVerbose = verbose;