Skip to content

Commit 8ceab16

Browse files
committed
feat(dpkg): more option arg completions
1 parent a283b69 commit 8ceab16

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

completions/dpkg

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ _dpkg()
5454
_filedir '?(u|d)deb'
5555
return
5656
;;
57-
--build | -!(-*)b)
57+
--build | --admindir | --instdir | --root | -!(-*)b)
5858
_filedir -d
5959
return
6060
;;
@@ -82,6 +82,32 @@ _dpkg()
8282
COMPREPLY=($(_comp_dpkg_purgeable_packages "$cur"))
8383
return
8484
;;
85+
--debug | -!(-*)D)
86+
COMPREPLY=($(compgen -W 'help' -- "$cur"))
87+
return
88+
;;
89+
--ignore-depends)
90+
local packages=$(
91+
cur=${cur##*,} _xfunc apt-cache _apt_cache_packages
92+
)
93+
_comp_delimited , -W '$packages'
94+
return
95+
;;
96+
--log)
97+
_filedir log
98+
return
99+
;;
100+
--path-exclude | --path-include)
101+
return
102+
;;
103+
--status-logger)
104+
COMPREPLY=($(compgen -c -- "$cur"))
105+
return
106+
;;
107+
--verify-format)
108+
COMPREPLY=($(compgen -W 'rpm' -- "$cur"))
109+
return
110+
;;
85111
esac
86112

87113
$split && return

0 commit comments

Comments
 (0)