Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGordian Edenhofer <gordian.edenhofer@gmail.com>2016-09-04 18:14:00 +0200
committerAllan McRae <allan@archlinux.org>2016-09-25 17:41:10 +1000
commit3a00bc31f293e3bbba0b1047e23682914215d217 (patch)
treefff37da00da7677e567932bf4f474eac45fa3cfa /contrib
parent5c549b0e1df1ff13a94fbf3849391c1b7e2ac7fb (diff)
bacman: rewrite usage function
Signed-off-by: Gordian Edenhofer <gordian.edenhofer@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bacman.sh.in17
1 files changed, 13 insertions, 4 deletions
diff --git a/contrib/bacman.sh.in b/contrib/bacman.sh.in
index 47439031..5569530f 100644
--- a/contrib/bacman.sh.in
+++ b/contrib/bacman.sh.in
@@ -48,13 +48,22 @@ trap clean_up SIGHUP SIGINT SIGTERM
# User Friendliness
#
usage() {
- echo "${myname} (pacman) v${myver}"
+ printf "%s (pacman) %s\n" "$myname" "$myver"
echo
- echo "Recreate a package using pacman's database and system files"
+ printf -- "$(gettext "Recreate packages using pacman's database and system files")\n"
echo
- echo "Usage: ${myname} [--nocolor] [--pacnew] <installed package name>"
+ printf -- "$(gettext "Usage: %s [options] <package(s)>")\n" "$0"
+ echo
+ printf -- "$(gettext "Options:")\n"
+ printf -- "$(gettext " -h, --help Show this help message and exit")\n"
+ printf -- "$(gettext " -m, --nocolor Disable colorized output messages")\n"
+ printf -- "$(gettext " --pacnew Package .pacnew files")\n"
+ echo
+ printf -- "$(gettext "Examples:")"
+ printf -- " %s linux-headers\n" "$myname"
+ printf -- " %s --nocolor --pacnew gzip make binutils\n" "$myname"
+ printf -- " %s \$(pacman -Qq)\n" "$myname"
echo
- echo "Example: ${myname} linux-headers"
}
version() {