Skip to content

Commit 5466465

Browse files
committed
[update] : Added help.
1 parent 238724a commit 5466465

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

aptpac

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,24 @@ fi
3030
installed=false
3131

3232
_usage () {
33-
:
33+
echo "usage ${0} [options] [command] [packages]"
34+
echo " commands: "
35+
echo " install Install the specified package."
36+
echo " remove Remove the specified package."
37+
echo " purge Permanently remove the package."
38+
echo " update Update the package database."
39+
echo " upgrade Update the package."
40+
echo " search Search for a package."
41+
echo " autoremove Remove unnecessary packages."
42+
echo " list Displays a list of packages."
43+
echo
44+
echo " general options: "
45+
echo " -y | --yes | --assume-yes Do not check."
46+
echo " -d | --download-only Only download the package."
47+
echo " -c <file> Config file for pacman."
48+
echo " -h | --help Display this help."
49+
echo " -v Displays the version of pacman."
50+
echo " --purge Delete the entire configuration file."
3451
}
3552

3653
_exit () {

0 commit comments

Comments
 (0)