aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lpm.lua1
-rw-r--r--t/run.lua6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lpm.lua b/src/lpm.lua
index d745cc0..8ebe33f 100644
--- a/src/lpm.lua
+++ b/src/lpm.lua
@@ -2193,6 +2193,7 @@ Flags have the following effects:
--mask Excludes the specified addons from the operation
you're performing. Can break packages if you exclude
dependencies that the addon actually requires to run.
+ Ensure you know what you're doing if you use this.
The following flags are useful when listing plugins, or generating the plugin
table. Putting a ! infront of the string will invert the filter. Multiple
diff --git a/t/run.lua b/t/run.lua
index 6b25d50..a58bb12 100644
--- a/t/run.lua
+++ b/t/run.lua
@@ -120,6 +120,12 @@ local tests = {
assert_not_exists(userdir .. "/plugins/lsp")
assert_not_exists(userdir .. "/plugins/lintplus")
assert_not_exists(userdir .. "/plugins/settings.lua")
+ end,
+ ["12_masking"] = function()
+ lpm("install lsp --mask settings")
+ assert_exists(userdir .. "/plugins/lsp")
+ assert_exists(userdir .. "/plugins/lintplus")
+ assert_not_exists(userdir .. "/plugins/settings.lua")
end
}