diff options
author | Vaxry <[email protected]> | 2023-12-10 19:30:14 +0000 |
---|---|---|
committer | Vaxry <[email protected]> | 2023-12-10 19:30:26 +0000 |
commit | d02ba422daae97498ffe6cdf84914b74ddf1fd44 (patch) | |
tree | ddd88c587ff08ca091be8eeaf2d1296856db9a8a /hyprpm | |
parent | 359baa02147f0ff91c8c5156c5e83b6ec6976525 (diff) | |
download | Hyprland-d02ba422daae97498ffe6cdf84914b74ddf1fd44.tar.gz Hyprland-d02ba422daae97498ffe6cdf84914b74ddf1fd44.zip |
hyprpm: guard empty command
fixes #4114
Diffstat (limited to 'hyprpm')
-rw-r--r-- | hyprpm/src/main.cpp | 5 |
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; |