We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optparse-applicative provides a switch parser with the following type:
optparse-applicative
switch
switch :: Mod FlagFields Bool -> Parser Bool
It's not entirely clear what does the Bool mean: Is it True when the argument is enabled or when it's default?
Bool
True
I propose to introduce a helper parser in the Iris.Cli.OnOff module:
Iris.Cli.OnOff
data OnOff = Off | On onoff :: Mod FlagFields Bool -> Parser OnOff
The text was updated successfully, but these errors were encountered:
[chshersh#20] OnOff module with helper parser onoff
a2c9f83
No branches or pull requests
optparse-applicative
provides aswitch
parser with the following type:It's not entirely clear what does the
Bool
mean: Is itTrue
when the argument is enabled or when it's default?I propose to introduce a helper parser in the
Iris.Cli.OnOff
module:The text was updated successfully, but these errors were encountered: