From fb463d418dbc4b486189bf6d30c34b363bd169e4 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 20 Jan 2025 17:00:40 +0700 Subject: [PATCH] updated help --- src/pm | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/pm b/src/pm index 31e1b9a..4cda774 100755 --- a/src/pm +++ b/src/pm @@ -49,8 +49,6 @@ checkroot() { exit 1 fi } - -checkroot #------------------------------------------------------------------------ #----------------- add(install) package function ------------------------ @@ -271,16 +269,17 @@ q() { help() { printf " $YELLOW**$GREEN pm usage$RESET : - $BWHITE pm add [package name] - download and install from repository - pm unpack [/path/to/package/archive] - unpack(install) from local package archive - pm down [package name] - download package from repository without install - pm del [package name] - delete package - pm list [package name] - list files in package - pm search [package name] - search package in repository - pm query - show installed packages - pm help - this help message - pm clear - clear all package archives from cached packages directory - pm sync - synchronize repository + $BWHITE add, a [package name] - download and install from repository + unpack, u [/path/to/package/archive] - unpack(install) from local package archive + down, download [package name] - download package from repository without install + del, d [package name] - delete package + list, l [package name] - list files in package + search, ss [package name] - search package in repository + query, q - show installed packages + help - this help message + clear - clear all package archives from cached packages directory + sync, s - synchronize repository + deps [package name] - show package dependencies $YELLOW**$GREEN examples$RESET : $BWHITE pm add dnsmasq @@ -368,9 +367,11 @@ deps() { case "$1" in add|a|del|d) + checkroot "$1" $@ ;; - query|q|help|s|sync|clear|ss|search|list|l|unpack|u|down|download|deps) + query|q|s|sync|clear|ss|search|list|l|unpack|u|down|download|deps) + checkroot "$1" $2 ;; *)