pacdiff: allow multiple separated options

loop over arguments, this will allow adding options such as --nocolor

Signed-off-by: Jonathan Frazier <eyeswide@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Jonathan Frazier 2013-07-15 12:56:03 -04:00 committed by Allan McRae
parent bcde027091
commit 05e954d2cd
1 changed files with 4 additions and 3 deletions

View File

@ -64,8 +64,8 @@ cmd() {
fi
}
if [ $# -gt 0 ]; then
case $1 in
while [[ -n "$1" ]]; do
case "$1" in
-l|--locate)
locate=1;;
-V|--version)
@ -75,7 +75,8 @@ if [ $# -gt 0 ]; then
*)
usage; exit 1;;
esac
fi
shift
done
# see http://mywiki.wooledge.org/BashFAQ/020
while IFS= read -u 3 -r -d '' pacfile; do