From d4e4a84e83904ce8568440cac631f758fc2bf807 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 20 Apr 2009 19:15:46 +0200 Subject: pkg: Removed support for short options --- bin/pkg | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bin/pkg') 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 -- cgit v1.2.3