OSDN Git Service

[update] : Added help document
authorhayao <shun819.mail@gmail.com>
Wed, 23 Dec 2020 07:54:23 +0000 (16:54 +0900)
committerhayao <shun819.mail@gmail.com>
Wed, 23 Dec 2020 07:54:23 +0000 (16:54 +0900)
wfa

diff --git a/wfa b/wfa
index 80065c8..c1b761e 100755 (executable)
--- a/wfa
+++ b/wfa
@@ -674,6 +674,23 @@ usage (){
 
     }
 
+    local _wfa_usage_remove
+    _wfa_usage_remove() {
+        echo "usage:  ${wfa_command} {-R --remove} [options] <package(s)>"
+        echo "options:"
+        echo "  -b, --dbpath <path>  set an alternate database location"
+        echo "  -d, --nodeps         skip dependency version checks (-dd to skip all checks)"
+        echo "  -u, --unneeded       remove unneeded packages"
+        echo "      --arch <arch>    set an alternate architecture"
+        echo "      --color <when>   colorize the output"
+        echo "      --config <path>  set an alternate configuration file"
+        echo "      --confirm        always ask for confirmation"
+        echo "      --debug          display debug messages"
+        echo "      --disable-download-timeout"
+        echo "                       use relaxed timeouts for download"
+        echo "      --noconfirm      do not ask for any confirmation"
+    }
+
     if [[ "${operation}" = "none" ]]; then
         _wfa_usage
     elif [[ "${_pacman_help}" = true ]]; then