Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@CThuleHansen
Copy link
Contributor

@CThuleHansen CThuleHansen commented Sep 21, 2022

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

Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great implementation! 🥇

I have a few suggestions for improving the code further. But it's a great start 👍🏻

@CThuleHansen
Copy link
Contributor Author

CThuleHansen commented Sep 23, 2022

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

Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks pretty cool ✨

I have a few minor last comments. But all the changes are looking pretty good 🙂

Also not sure why the expected behaviour was encoded as Failure. I can come up with the reason to justify it but I'd rather want it to be something like Info and not Failure. But it is what it is.

@CThuleHansen
Copy link
Contributor Author

I think it is all adressed now :)

@chshersh chshersh added the hacktoberfest-accepted https://hacktoberfest.com/participation/ label Sep 28, 2022
Copy link
Owner

@chshersh chshersh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job! Looks really great 🏆

@chshersh chshersh merged commit 1bede5f into chshersh:main Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli-options CLI options, parsers hacktoberfest-accepted https://hacktoberfest.com/participation/ test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants