index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2017-03-12 15:24:58 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-03-12 15:24:58 -0400 |
commit | 382337e9970c3e522461deadb99a88e9ac307215 (patch) | |
tree | 0037055867c9056794ecc89f0b8ef3adc75dab89 | |
parent | 682132448e1d73608506f3c5c4d52fc422a207b1 (diff) |
-rw-r--r-- | asp.in | 32 |
@@ -44,7 +44,7 @@ EOF } __require_argc() { - local min max argc=$(( BASH_ARGC - 1 )) + local min max argc=$2 case $1 in *-*) @@ -197,72 +197,72 @@ disk_usage() { } action__checkout() { - __require_argc 1- + __require_argc 1- $# map package_checkout "$@" } action__difflog() { - __require_argc 1 + __require_argc 1 $# difflog "$1" } action__disk-usage() { - __require_argc 0 + __require_argc 0 $# disk_usage } action__export() { - __require_argc 1- + __require_argc 1- $# map package_export "$@" } action__gc() { - __require_argc 0 + __require_argc 0 $# gc } action__help() { - __require_argc 0 + __require_argc 0 $# usage } action__list-all() { - __require_argc 0 + __require_argc 0 $# list_all } action__list-arches() { - __require_argc 1- + __require_argc 1- $# map package_get_arches "$@" } action__list-local() { - __require_argc 0 + __require_argc 0 $# list_local } action__list-repos() { - __require_argc 1- + __require_argc 1- $# map package_get_repos "$@" } action__log() { - __require_argc 1 + __require_argc 1 $# log "$1" } action__shortlog() { - __require_argc 1 + __require_argc 1 $# shortlog "$1" } action__show() { - __require_argc 1-2 + __require_argc 1-2 $# package_show_file "$@" } action__untrack() { - __require_argc 1- + __require_argc 1- $# map untrack "$@" } @@ -271,7 +271,7 @@ action__update() { } action__ls-files() { - __require_argc 1 + __require_argc 1 $# package_list_files "$1" } |