diff options
author | Jason St. John <jstjohn@purdue.edu> | 2013-11-08 02:53:33 -0500 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-11-15 11:02:27 +1000 |
commit | a15fd48016014249a13db7a437b5e4f5937f6158 (patch) | |
tree | eecd9c3717fcb05d58983ce89f4d3778502f0cc4 /contrib/paclist.sh.in | |
parent | 7bfaa358ea45c5d527a382bb5fef734b3134bd6f (diff) | |
download | pacman-a15fd48016014249a13db7a437b5e4f5937f6158.tar.xz |
Improve --help switch output for pacman contrib and pacman scripts
Unify the formatting of the --help switch for pacman utils, if it exists.
All of the pacman utils will now output help text using the following
format:
util-name (pacman) v<pacman version>
one line description of util's purpose
Usage: util-name [options]
-b, --bar whatever --bar does
-f, --foo whatever --foo does
-h, --help display this help message
Reported-by: Karol Błażewicz <karol.blazewicz at gmail.com>
Signed-off-by: Jason St. John <jstjohn@purdue.edu>
Diffstat (limited to 'contrib/paclist.sh.in')
-rw-r--r-- | contrib/paclist.sh.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/contrib/paclist.sh.in b/contrib/paclist.sh.in index 7883e21b..319dcba9 100644 --- a/contrib/paclist.sh.in +++ b/contrib/paclist.sh.in @@ -31,9 +31,13 @@ if ! type gettext &>/dev/null; then fi usage() { - printf '%s - List all packages installed from a given repo\n' "$myname" - printf 'Usage: %s <repo>\n' "$myname" - printf 'Example: %s testing\n' "$myname" + printf "%s (pacman) v%s\n" "${myname}" "myver" + echo + printf "List all packages installed from a given repository\n" "${myname}" + echo + printf "Usage: %s <repository>\n" "${myname}" + echo + printf "Example: %s testing\n" "${myname}" } version() { |