summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-20 19:15:46 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-20 19:15:46 +0200
commitd4e4a84e83904ce8568440cac631f758fc2bf807 (patch)
treeef09ae1d9dfbcf9859b2a3721f976b70df454865 /bin/pkg
parentbe19b2565868a9d5c48bfa52ee6ba99a9ae494aa (diff)
pkg: Removed support for short options
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg18
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/pkg b/bin/pkg
index 4ec0499..c6ae12f 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -90,16 +90,16 @@ export PKG_ROOT
##
# commandline options override everything else
-while [[ $1 == [-+]* ]] {
+while [[ $1 == --* ]] {
case $1 in
- -q|--quiet) SILENT=1 ;;
- +q|--no-quiiet) SILENT=0 ;;
- -d|--debug) DEBUG=1 ;;
- +d|--no-debug) DEBUG=0 ;;
- -au|--auto-update) AUTOUPDATE=1 ;;
- +au|--no-auto-update) AUTOUPDATE=0 ;;
- -co|--checklinks-options) CL_OPTIONS+=$2; shift ;;
- -p|--packagedir) PDIR=$2; shift ;;
+ --quiet) SILENT=1 ;;
+ --no-quiiet) SILENT=0 ;;
+ --debug) DEBUG=1 ;;
+ --no-debug) DEBUG=0 ;;
+ --auto-update) AUTOUPDATE=1 ;;
+ --no-auto-update) AUTOUPDATE=0 ;;
+ --checklinks-options) CL_OPTIONS+=$2; shift ;;
+ --packagedir) PDIR=$2; shift ;;
*) die "Unknown argument: '$1'\n" ;;
esac
shift