cabal-install cmd line parser: silently accepts ambiguous prefixes
Open
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
I was getting strange behaviour from
```
cabal install --with-hc-pkg=ghc-pkg-7.8.4 --with-hc=ghc-7.8.4
```
until I realized that one option is a prefix of the other, and was ignored. (The second option should be --with-compiler, I think)
I think this is wrong behaviour, instead cabal-install should complain loudly, and refuse to start.
This is for
```
cabal-install version 1.22.7.0
using version 1.22.4.0 of the Cabal library
```
Contributor guide
Assessment
This issue has not been assessed yet.