hyprpm: reject remove without a param

ref #10458
This commit is contained in:
Vaxry 2025-05-17 18:10:28 +02:00
parent dfa4836216
commit bb9aa79b21
No known key found for this signature in database
GPG Key ID: 665806380871D640

View File

@ -106,7 +106,7 @@ int main(int argc, char** argv, char** envp) {
return g_pPluginManager->addNewPluginRepo(command[1], rev) ? 0 : 1; return g_pPluginManager->addNewPluginRepo(command[1], rev) ? 0 : 1;
} else if (command[0] == "remove") { } else if (command[0] == "remove") {
if (ARGS.size() < 2) { if (command.size() < 2) {
std::println(stderr, "{}", failureString("Not enough args for remove.")); std::println(stderr, "{}", failureString("Not enough args for remove."));
return 1; return 1;
} }