OSDN Git Service

[update] : Added help. v2.0.0
authorhayao <shun819.mail@gmail.com>
Sat, 7 Mar 2020 03:18:23 +0000 (12:18 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 7 Mar 2020 03:18:23 +0000 (12:18 +0900)
aptpac

diff --git a/aptpac b/aptpac
index d4ee78e..8a1ef65 100755 (executable)
--- a/aptpac
+++ b/aptpac
@@ -30,7 +30,24 @@ fi
 installed=false
 
 _usage () {
-    :
+    echo "usage ${0} [options] [command] [packages]"
+    echo " commands:              "
+    echo "    install                       Install the specified package."
+    echo "    remove                        Remove the specified package."
+    echo "    purge                         Permanently remove the package."
+    echo "    update                        Update the package database."
+    echo "    upgrade                       Update the package."
+    echo "    search                        Search for a package."
+    echo "    autoremove                    Remove unnecessary packages."
+    echo "    list                          Displays a list of packages."
+    echo
+    echo " general options:       "
+    echo "    -y | --yes  | --assume-yes    Do not check."
+    echo "    -d | --download-only          Only download the package."
+    echo "    -c <file>                     Config file for pacman."
+    echo "    -h | --help                   Display this help."
+    echo "    -v                            Displays the version of pacman."
+    echo "    --purge                       Delete the entire configuration file."
 }
 
 _exit () {