move load to reload

This commit is contained in:
Vaxry 2023-12-06 19:55:24 +00:00
parent f84e030b1a
commit c16f149718

View file

@ -15,7 +15,7 @@ const std::string HELP = R"#(┏ hyprpm, a Hyprland Plugin Manager
enable [name] Enable a plugin enable [name] Enable a plugin
disable [name] Disable a plugin disable [name] Disable a plugin
update Check and update all plugins if needed update Check and update all plugins if needed
load Load hyprpm state. Ensure all enabled plugins are loaded. reload Reload hyprpm state. Ensure all enabled plugins are loaded.
list List all installed plugins list List all installed plugins
Flags: Flags:
@ -114,7 +114,7 @@ int main(int argc, char** argv, char** envp) {
auto ret = g_pPluginManager->ensurePluginsLoadState(); auto ret = g_pPluginManager->ensurePluginsLoadState();
if (ret != LOADSTATE_OK) if (ret != LOADSTATE_OK)
return 1; return 1;
} else if (command[0] == "load") { } else if (command[0] == "reload") {
auto ret = g_pPluginManager->ensurePluginsLoadState(); auto ret = g_pPluginManager->ensurePluginsLoadState();
if (ret != LOADSTATE_OK && notify) { if (ret != LOADSTATE_OK && notify) {