`addCmd` prints an empty string for unknown commands
Open
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
`addCmd` prints an empty string for missing commands, see [this clear diagnosis](https://github.com/haskell/cabal/pull/8433#issuecomment-1235011473) in #8433.
**To Reproduce**
Steps to reproduce the behavior:
- try to modify the relevant part of `cabal help` output.
- Place an `addCmd "weird-command".
**Expected behavior**
Undecided between: a simple "??? unrecognised command" in the help or a more stern failing assertion (latter option only if `help` is part of tests somehow).
**System information**
- Debian
- HEAD
Contributor guide
Assessment
This issue has not been assessed yet.