1999-11-15 13:01:47 +01:00
|
|
|
#autoload
|
|
|
|
|
2000-05-31 11:38:25 +02:00
|
|
|
local __targs __gopt=-J
|
1999-11-15 13:01:47 +01:00
|
|
|
|
|
|
|
if [[ "$1" = -C?* ]]; then
|
2000-05-31 11:38:25 +02:00
|
|
|
__targs=( -C "${1[3,-1]}" )
|
1999-11-15 13:01:47 +01:00
|
|
|
shift
|
|
|
|
elif [[ "$1" = -C ]]; then
|
2000-05-31 11:38:25 +02:00
|
|
|
__targs=( -C "$2" )
|
1999-11-15 13:01:47 +01:00
|
|
|
shift 2
|
|
|
|
else
|
2000-05-31 11:38:25 +02:00
|
|
|
__targs=()
|
1999-11-15 13:01:47 +01:00
|
|
|
fi
|
|
|
|
|
2000-04-01 22:43:43 +02:00
|
|
|
if [[ "$1" = -([12]|)[VJ] ]]; then
|
2000-05-31 11:38:25 +02:00
|
|
|
__gopt="$1"
|
2000-04-01 22:43:43 +02:00
|
|
|
shift
|
|
|
|
fi
|
|
|
|
|
2000-05-31 11:38:25 +02:00
|
|
|
_tags "$__targs[@]" "$1"
|
1999-11-15 13:01:47 +01:00
|
|
|
|
2000-04-11 09:57:56 +02:00
|
|
|
while _tags; do
|
2000-05-31 11:38:25 +02:00
|
|
|
_all_labels "$__gopt" "$@" && return 0
|
2000-04-11 09:57:56 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
return 1
|