Add biOption for two-argument options#415
Conversation
|
Interesting, but yeah I agree it's a bit janky. So I'm not sure (using GADTs is almost certainly a no though as I'm trying to keep optparse very lean). I think if people like yourself are really needing this, the best course of action is to resurrect #284, but make the behaviour opt-in under a new That way people can't easily foot-gun themselves, and no-one's code will break. |
|
@roberth did you not end up needing this, trying to translate a bash script into Haskell and need to parse |
|
The most temporary solutions become the most permenant, or something. I'll use your fork then, because |
This is a potential solution to #271 and #284, observing that both issues only seem to want to parse a fixed number of two arguments per option. That certainly applies to my use case as well.
I don't think this solution is pretty, but it is backwards compatible and it does the job.