diff --git a/src/spm/spm.lua b/src/spm/spm.lua index a05125b..b6e645a 100644 --- a/src/spm/spm.lua +++ b/src/spm/spm.lua @@ -36,10 +36,10 @@ 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 [-f] [-m] [path]' to download a package to a directory on your system (or /usr by default)") - print("'spm update ' to update an already installed package") - print("'spm update all' to update every already installed package") - print("'spm uninstall ' to remove a package from your system") + print("'spm install|add [-f] [-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") print(" -f: Force creation of directories and overwriting of existing files.") end @@ -535,11 +535,11 @@ if args[1] == "list" then printPackages(tPacks) elseif args[1] == "info" then provideInfo(args[2]) -elseif args[1] == "install" then +elseif args[1] == "install" or args[1] == "add" then installPackage(args[2], args[3], false) -elseif args[1] == "update" then +elseif args[1] == "update" or args[1] == "upgrade" then updatePackage(args[2]) -elseif args[1] == "uninstall" then +elseif args[1] == "uninstall" or args[1] == "remove" then uninstallPackage(args[2]) else printUsage()