Add help for r2pm -uu

This commit is contained in:
pancake 2021-12-05 02:44:22 +01:00
parent e8a7adba42
commit 150a4e385a
2 changed files with 11 additions and 5 deletions

View File

@ -512,7 +512,7 @@ pkgFilePath() {
r2pm_doc() {
if [ -z "$2" ]; then
echo "Usage: r2pm -d [package] # show docs on [package]"
echo "Usage: r2pm -d [package] # show docs on [package] (see r2pm -l)"
exit 1
else
FILE="$(pkgFilePath "$1")"
@ -588,9 +588,13 @@ case "$1" in
fi
;;
-uu)
FILE="${R2PM_USRDIR}/pkg/$2"
$0 -u $2 2> /dev/null
rm -f "${FILE}"
if [ -z "$2" ]; then
echo "Usage: r2pm -uu [pkgname] # force uninstall given package"
else
FILE="${R2PM_USRDIR}/pkg/$2"
$0 -u $2 2> /dev/null
rm -f "${FILE}"
fi
;;
-u|uninstall)
r2pm_uninstall "$@"

View File

@ -1,4 +1,4 @@
.Dd Jun 30, 2021
.Dd Dec 5, 2021
.Dt R2PM 1
.Sh NAME
.Nm R2PM
@ -20,6 +20,8 @@ Install a package
Install a package in the system directory
.It Fl u, Cm uninstall Ar pkgname
Uninstall a package
.It Fl uu Ar pkgname
Force uninstall a package
.It Fl U, Cm Upgrade all the outdated packages
Runs the suggested lines when loading outdated plugins by r2
.It Fl gu, Cm global-install Ar pkgname