1999-11-09 14:15:00 +01:00
|
|
|
#autoload
|
|
|
|
|
2000-05-31 11:38:25 +02:00
|
|
|
local __gopt=-J
|
1999-11-09 14:15:00 +01:00
|
|
|
|
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
|
1999-11-09 14:15:00 +01:00
|
|
|
|
2000-04-01 22:43:43 +02:00
|
|
|
if comptags -R "$1"; then
|
|
|
|
if [[ $# -gt 3 ]]; then
|
2000-05-31 11:38:25 +02:00
|
|
|
_all_labels - "$__gopt" "$@" || return 1
|
2000-04-01 22:43:43 +02:00
|
|
|
elif [[ $# -gt 1 ]]; then
|
2000-05-31 11:38:25 +02:00
|
|
|
_description "$__gopt" "$@"
|
2000-04-01 22:43:43 +02:00
|
|
|
fi
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
return 1
|
|
|
|
fi
|