commit 28f61b61e3cc3f4dcbfbf7660e03b9e175a6db6a parent 1c95531d38008a85ccd67a57898ec54ebdc08daa Author: gearsix <gearsix@tuta.io> Date: Tue, 22 Mar 2022 17:48:10 +0000 added usage() Diffstat:
M | xpm.sh | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/xpm.sh b/xpm.sh @@ -3,6 +3,19 @@ xpm="" INSTALLED=~/.local/share/xpm/installed.txt +usage() { + echo "usage: xpm COMMAND [PKG ...]" + echo "" + echo "xpm - x package manager, an interface to the system package manager." + echo "" + echo "COMMAND" + echo "install install all [PKG]" + echo "remove uninstall all [PKG] (and uneeded dependencies)" + echo "search search the repositories for [PKG]" + echo "query query [PKG] to see if it's installed" + echo "update update all packages on the system" +} + installed_add() { if [ $XPM_NOTRACK ]; then return; fi @@ -104,4 +117,7 @@ case "$1" in shift xpm_update ;; + *) + usage + exit esac