diff options
author | Jason St. John <jstjohn@purdue.edu> | 2013-11-08 08:53:33 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-11-15 02:02:27 +0100 |
commit | a15fd48016014249a13db7a437b5e4f5937f6158 (patch) | |
tree | eecd9c3717fcb05d58983ce89f4d3778502f0cc4 /scripts/pacman-db-upgrade.sh.in | |
parent | 7bfaa358ea45c5d527a382bb5fef734b3134bd6f (diff) | |
download | pacman-a15fd48016014249a13db7a437b5e4f5937f6158.tar.gz 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 'scripts/pacman-db-upgrade.sh.in')
-rw-r--r-- | scripts/pacman-db-upgrade.sh.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/pacman-db-upgrade.sh.in b/scripts/pacman-db-upgrade.sh.in index a1630c52..2b39538e 100644 --- a/scripts/pacman-db-upgrade.sh.in +++ b/scripts/pacman-db-upgrade.sh.in @@ -33,8 +33,11 @@ USE_COLOR='y' m4_include(library/output_format.sh) usage() { - printf "pacman-db-upgrade (pacman) %s\n\n" "$myver" - printf -- "$(gettext "Usage: %s [--nocolor] [pacman_db_root]")\n\n" "$0" + printf "pacman-db-upgrade (pacman) %s\n" "${myver}" + echo + printf -- "$(gettext "Upgrade the local pacman database to a newer format")\n" + echo + printf -- "$(gettext "Usage: %s [--nocolor] [pacman_db_root]")\n" "$0" } version() { |