diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-20 19:15:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-20 19:15:46 +0200 |
commit | d4e4a84e83904ce8568440cac631f758fc2bf807 (patch) | |
tree | ef09ae1d9dfbcf9859b2a3721f976b70df454865 | |
parent | be19b2565868a9d5c48bfa52ee6ba99a9ae494aa (diff) |
pkg: Removed support for short options
-rwxr-xr-x | bin/pkg | 18 | ||||
-rw-r--r-- | man/1/pkg | 18 |
2 files changed, 17 insertions, 19 deletions
@@ -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 @@ -92,33 +92,31 @@ If no argument is given, updates all installed packages =head1 OPTIONS -B<pkg> accepts both long and short options. -Options marked as [boolean] may be negated, -the short options by using '+' instead of '-' as prefix (like '+au'), -the long options by prepending a 'no', like '--no-auto-update'. +Options marked as [boolean] may be negated +by prepending a 'no', like '--no-auto-update'. -Options always override the configuration file and the environment variables. +Options always override the configuration file. =over -=item B<-q>, B<--quiet> [boolean] +=item B<--quiet> [boolean] Enable quiet mode, don't print progress. Useful for scripting -=item B<-d>, B<--debug> [boolean] +=item B<--debug> [boolean] Enable debug mode -=item B<-au>, B<--auto-update> [boolean] +=item B<--auto-update> [boolean] Automatically update the package list before doing certain actions -=item B<-co>, B<--checklinks-options> I<option> +=item B<--checklinks-options> I<option> Append I<option> to the options checklinks is invoked with. Only one option is allowed. To append more options, repeat the argument -=item B<-p>, B<--packagedir> I<directory> +=item B<--packagedir> I<directory> Use I<directory> as local package directory |