aboutsummaryrefslogtreecommitdiffhomepage
path: root/hyprpm
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-12-10 19:30:14 +0000
committerVaxry <[email protected]>2023-12-10 19:30:26 +0000
commitd02ba422daae97498ffe6cdf84914b74ddf1fd44 (patch)
treeddd88c587ff08ca091be8eeaf2d1296856db9a8a /hyprpm
parent359baa02147f0ff91c8c5156c5e83b6ec6976525 (diff)
downloadHyprland-d02ba422daae97498ffe6cdf84914b74ddf1fd44.tar.gz
Hyprland-d02ba422daae97498ffe6cdf84914b74ddf1fd44.zip
hyprpm: guard empty command
fixes #4114
Diffstat (limited to 'hyprpm')
-rw-r--r--hyprpm/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
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<CPluginManager>();
g_pPluginManager->m_bVerbose = verbose;