index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Gordian Edenhofer <gordian.edenhofer@gmail.com> | 2016-09-04 18:14:03 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2016-09-25 17:41:10 +1000 |
commit | 130c0d54969e686731b9002b3cf3f52052677c73 (patch) | |
tree | 07ef47903155d8539b3a3c71cbc983c2465a8ca6 /contrib | |
parent | 8f4a67bda976f24a88aec5112cdb7f71dde5fc78 (diff) |
-rw-r--r-- | contrib/bacman.sh.in | 8 |
diff --git a/contrib/bacman.sh.in b/contrib/bacman.sh.in index 69fc7654..f372355d 100644 --- a/contrib/bacman.sh.in +++ b/contrib/bacman.sh.in @@ -28,6 +28,7 @@ declare -r myname='bacman' declare -r myver='@PACKAGE_VERSION@' USE_COLOR='y' INCLUDE_PACNEW='n' +QUIET=0 # Required for fakeroot because options are shifted off the array. ARGS=("$@") @@ -54,6 +55,7 @@ usage() { echo printf -- "$(gettext "Options:")\n" printf -- "$(gettext " -h, --help Show this help message and exit")\n" + printf -- "$(gettext " -q, --quiet Silence most of the status reporting")\n" printf -- "$(gettext " -m, --nocolor Disable colorized output messages")\n" printf -- "$(gettext " --pacnew Package .pacnew files")\n" echo @@ -78,8 +80,8 @@ for option in "$@"; do done # Parse arguments -OPT_SHORT='mv' -OPT_LONG=('nocolor' 'pacnew' 'version') +OPT_SHORT='qmv' +OPT_LONG=('quiet' 'nocolor' 'pacnew' 'version') if ! parseopts "$OPT_SHORT" "${OPT_LONG[@]}" -- "$@"; then usage exit 1 @@ -89,6 +91,8 @@ unset OPT_SHORT OPT_LONG OPTRET while :; do case "$1" in + -q|--quiet) + QUIET=1 ;; -m|--nocolor) USE_COLOR='n' ;; --pacnew) |