-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
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
UX: confusing error "invalid option" when options in wrong order #445
Comments
We are using |
I think this will be fixed by #446, if it's not, then I don't know how to fix it. |
Isn't fixed, at least not by commit 93fa5dc
|
|
I bumped the package version. I'm not sure if you hit it. (It's very hard to note). |
Likely, you meant haskell/cabal#6211.
This could have been the problem. It works now:
Thanks! |
The error message
Invalid option
is confusing if the option is valid but in unexpected order.Try 1:
Try 2:
These work:
The command line syntax is declared as
but this syntax is apparently not followed by the command line parser; at least if the bar is to be read as usual as "alternative".
Maybe switch to https://github.com/pcapriotti/optparse-applicative ? This framework automatically generates a correct description of the command line syntax.
The text was updated successfully, but these errors were encountered: