While using optparse-applicative
I’ve run into this:
option --key: cannot parse value `foobar'
It’s a bit mysterious, and doesn’t tell me a lot.
The code for the param is also pretty simple:
versionKey :: Parser (Maybe Text)
versionKey =
option
auto
(long "key" <> short 'k' <> metavar "KEY" <>
help "..." <>
value "defaultvalue" <>
showDefault)
I’ve spent some time to try different changes that make sense, but without much luck.
I’m guessing someone who has seen this generic error from optparse might know what I did wrong or am not understanding.
Thanks!