diff --git a/src/spm/spm.lua b/src/spm/spm.lua index 14e0159..9ba1627 100644 --- a/src/spm/spm.lua +++ b/src/spm/spm.lua @@ -36,7 +36,7 @@ local function printUsage() print("'spm list [-i] ' to get a list of available packages containing the specified substring") print(" -i: Only list already installed packages") print("'spm info ' to get further information about a program package") - print("'spm install|add [-f] [-m] [path]' to download a package to a directory on your system (or /usr by default)") + print("'spm install|add [-f] [[-nm][-m]] [path]' to download a package to a directory on your system (or /usr by default)") print("'spm update|upgrade ' to update an already installed package") print("'spm update|upgrade all' to update every already installed package") print("'spm uninstall|remove ' to remove a package from your system") @@ -432,7 +432,7 @@ local function installPackage(requestedPackage, installPath, doUpdate) end local downloadPath - if packageInfo.minified or options.m then + if (packageInfo.minified or options.m) and not options.nm then downloadPath = repositoryPath .. "/" .. string.gsub(filePath, "(.+)%.lua$", "%1") .. ".min.lua" else downloadPath = repositoryPath .. "/" .. filePath