chshersh / iris

🌈 Haskell CLI Framework supporting Command Line Interface Guidelines
https://hackage.haskell.org/package/iris
Mozilla Public License 2.0
176 stars 21 forks source link

Attempt to fix #56 #68

Closed CThuleHansen closed 1 year ago

CThuleHansen commented 1 year ago

This pull-request verifies the options presented in the help description and is a first go of #56. Let me know if more has to be added

CThuleHansen commented 1 year ago

There is something up with this ParserFailure. If I run https://github.com/CThuleHansen/iris/blob/main/test/Test/Iris/Cli.hs#L49 with --version, then I still get a ParserFailure, but with the correct version (0.0.0.0). I was expecting a Success.

Ahh https://hackage.haskell.org/package/optparse-applicative-0.17.0.0/docs/Options-Applicative.html#v:infoOption

An option that always fails and displays a message.

Wonder why it is encoded as a failure

CThuleHansen commented 1 year ago

I think it is all adressed now :)