cabal icon indicating copy to clipboard operation
cabal copied to clipboard

`cabal path foo` errors with ` 'man' doesn't take any extra arguments: foo`

Open andreasabel opened this issue 1 year ago • 3 comments

On current master:

$ cabal path foo
Error: [Cabal-7061]
'man' doesn't take any extra arguments: foo

This is a cut-and-paste coding error in PR

  • #8879

https://github.com/haskell/cabal/blob/9e5e815315794d4e5b8e69b36379ac04d0839c53/cabal-install/src/Distribution/Client/Main.hs#L1392-L1397 Copied from here: https://github.com/haskell/cabal/blob/9e5e815315794d4e5b8e69b36379ac04d0839c53/cabal-install/src/Distribution/Client/Main.hs#L1379-L1384

ATTN: @athas

andreasabel avatar Feb 29 '24 14:02 andreasabel

Perhaps interesting, ~~# 4661~~ #9583 refactors cabal path, and I think it fixes this particular error as well.

EDIT: I linked the wrong number

fendor avatar Feb 29 '24 15:02 fendor

Oh yeah, that's just a copy/paste error. Is it worth fixing if #9583 rewrites the command entirely?

athas avatar Feb 29 '24 16:02 athas

Is it worth fixing if #9583 rewrites the command entirely?

We can hold off any activity here until #9583 lands, I'd say. I linked the latter as fixing this issue here.

andreasabel avatar Mar 04 '24 18:03 andreasabel