|
|
@ -36,10 +36,10 @@ local function printUsage() |
|
|
|
print("'spm list [-i] <filter>' to get a list of available packages containing the specified substring") |
|
|
|
print(" -i: Only list already installed packages") |
|
|
|
print("'spm info <package>' to get further information about a program package") |
|
|
|
print("'spm install [-f] [-m] <package> [path]' to download a package to a directory on your system (or /usr by default)") |
|
|
|
print("'spm update <package>' to update an already installed package") |
|
|
|
print("'spm update all' to update every already installed package") |
|
|
|
print("'spm uninstall <package>' to remove a package from your system") |
|
|
|
print("'spm install|add [-f] [-m] <package> [path]' to download a package to a directory on your system (or /usr by default)") |
|
|
|
print("'spm update|upgrade <package>' to update an already installed package") |
|
|
|
print("'spm update|upgrade all' to update every already installed package") |
|
|
|
print("'spm uninstall|remove <package>' 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() |
|
|
|