Skip to content

Commit

Permalink
fix(dpkg): Add missing short option -R
Browse files Browse the repository at this point in the history
Completion for '--raw-extract' is already supported, however the
equivalent short option '-R' was missing. Now fixed.

Cf. dpkg-deb help message:

```
dpkg-deb --help
[...]
  -R|--raw-extract <deb> <directory>
[...]
```
  • Loading branch information
elboulangero committed Sep 24, 2024
1 parent 0eef733 commit 9891762
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/dpkg
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ _comp_cmd_dpkg()
done
fi

local noargopts='!(-*|*[ciAIfexXbsplWSrVLPD]*)'
local noargopts='!(-*|*[ciAIfexXRbsplWSrVLPD]*)'
# shellcheck disable=SC2254
case $prev in
--install | --unpack | --record-avail | --contents | --info | --fsys-tarfile | \
--field | --control | --extract | --vextract | --raw-extract | -${noargopts}[ciAIfexX])
--field | --control | --extract | --vextract | --raw-extract | -${noargopts}[ciAIfexXR])
_comp_compgen_filedir '?(u|d)deb'
return
;;
Expand Down

0 comments on commit 9891762

Please sign in to comment.