|
Lines 1099-1105
Link Here
|
| 1099 |
if [[ $j -lt $COMP_CWORD ]]; then |
1099 |
if [[ $j -lt $COMP_CWORD ]]; then |
| 1100 |
j=$((j + 1)) |
1100 |
j=$((j + 1)) |
| 1101 |
case $i in |
1101 |
case $i in |
| 1102 |
@(belongs|ch@(anges|eck)|dep@(ends|graph)|files|glsa|list|s@(ize|tats)|uses|which|hasuse|b|c|k|d|g|f|a|h|l|s|t|u|w)) |
1102 |
@(belongs|ch@(anges|eck)|dep@(ends|graph)|files|glsa|list|meta|s@(ize|tats)|uses|which|hasuse|b|c|k|d|g|f|a|h|l|m|s|t|u|w)) |
| 1103 |
mode=$i |
1103 |
mode=$i |
| 1104 |
;; |
1104 |
;; |
| 1105 |
esac |
1105 |
esac |
|
Lines 1114-1120
Link Here
|
| 1114 |
COMPREPLY=($(compgen -W "-q --quiet -C --nocolor -h --help -V --version" -- $cur)) |
1114 |
COMPREPLY=($(compgen -W "-q --quiet -C --nocolor -h --help -V --version" -- $cur)) |
| 1115 |
;; |
1115 |
;; |
| 1116 |
*) |
1116 |
*) |
| 1117 |
COMPREPLY=($(compgen -W "belongs changes check depends depgraph files glsa hasuse list size stats uses which" -- $cur)) |
1117 |
COMPREPLY=($(compgen -W "belongs changes check depends depgraph files glsa hasuse list meta size stats uses which" -- $cur)) |
| 1118 |
;; |
1118 |
;; |
| 1119 |
esac |
1119 |
esac |
| 1120 |
;; |
1120 |
;; |
|
Lines 1247-1252
Link Here
|
| 1247 |
esac |
1247 |
esac |
| 1248 |
fi |
1248 |
fi |
| 1249 |
;; |
1249 |
;; |
|
|
1250 |
m?(eta)) |
| 1251 |
# Only complete if the previous entry on the command line is not |
| 1252 |
# a package name. |
| 1253 |
if [[ ${prev} == ${mode} || ${prev:0:1} == "-" ]]; then |
| 1254 |
case $cur in |
| 1255 |
-*) |
| 1256 |
COMPREPLY=($(compgen -W "--help -h --description -d --herd -H --keywords -k --maintainer -m --useflags -u --upstream -U --xml -x" -- $cur)) |
| 1257 |
;; |
| 1258 |
*) |
| 1259 |
_pkgname -A $cur |
| 1260 |
;; |
| 1261 |
esac |
| 1262 |
fi |
| 1263 |
;; |
| 1250 |
k|check) |
1264 |
k|check) |
| 1251 |
# Only complete if the previous entry on the command line is not |
1265 |
# Only complete if the previous entry on the command line is not |
| 1252 |
# a package name. |
1266 |
# a package name. |