Do not require angle brackets in argument#5
Do not require angle brackets in argument#5ryanartecona merged 1 commit intodocopt:masterfrom Minoru:master
argument#5Conversation
Docopt understands two kinds of arguments: <this> and THIS. Previously, to match those one should have written `argument "<this>"` or `argument "this"`, respectively; that is wrong. Now one can write `argument "this"` to match both kinds of arguments.
|
Ah! Great catch. Thanks for the PR, and apologies for having to dig through the source of my first/only real Haskell project! :P I think, technically, this fix results in arguments with the same name but differing style, e.g. Will make a new release once I can test and verify. A new issue would be appreciated. :) |
Do not require angle brackets in `argument`
|
My pleasure! I don't know if the merit is Haskell's or yours, but the place I needed to tweak was really easy to find - just start with a function from public API and then grep a bit to find where
I don't view that as a problem, because I don't think we need to distinguish between the two at all. To me, it's really a matter of style: you either choose one or another, and stick to it.
I'm just curious: why do you think so? |
|
For the sake of tying off loose ends:
By "bad CLI", I really meant "an inconsistent usage page". A usage page which either uses both I personally prefer the |
|
Oh, I just misunderstood the meaning of "both cases" back then — I read it as if you meant "both |
From ryanartecona's comment on issue #4:
Thought so, too! That turned out to be trivial to fix.
If you merge this, I can open an issue so you don't forget to make a new release once you get back from your vacation. Have a good time!