#1137545 bash-completion: dpkg --simulate missing from completions

#1137545#5
Date:
2026-05-25 00:54:43 UTC
From:
To:
$ dpkg --s<TAB>
--search             --set-selections     --status             --status-logger=
--selected-only      --skip-same-version  --status-fd

Same with --dry-run

$ dpkg --version
Debian 'dpkg' package management program version 1.22.22 (arm64).

#1137545#10
Date:
2026-05-25 02:55:46 UTC
From:
To:
Hi!

Unfortunately dpkg, does not (yet) ship its own bash completion, so it
cannot be currently fixed here. The current completion is owned by
bash-completion itself.

Thanks,
Guillem

#1137545#19
Date:
2026-07-17 03:02:34 UTC
From:
To:
Hi!

While integrating the bash completions for dpkg from upstream, I
realized that this is indeed a problem with dpkg itself, as its --help
output lists all the long options on the same line, preventing the
parser to show them all. I've locally split them, so that they start
showing up in the completions.

Thanks,
Guillem

#1137545#26
Date:
2026-08-01 14:12:28 UTC
From:
To:
Hi!

Bug #1137545 in package dpkg reported by you has been fixed in
the dpkg/dpkg.git Git repository. You can see the changelog below, and
you can check the diff of the fix at:

https://git.dpkg.org/cgit/dpkg/dpkg.git/diff/?id=93ce470d4
---
dpkg: Split --no-act aliases into their own lines in --help output

This follows the existing style, and also helps with bash-completion
parsing the --help output which expects a single long option per line,
otherwise it does not propose the aliases as completions.

Closes: #1137545