docopt.clj icon indicating copy to clipboard operation
docopt.clj copied to clipboard

make `docopt` as function instead of macros

Open signalpillar opened this issue 12 years ago • 7 comments

Fix issue when docstring passed as first argument explicitly - parse function fails on (string? doc) assert

It happens due to the fact that passed doc variable at compile time will point to symbol not an actual value. I have got rid of macros at all as it is recommended to use functions when it is possible

signalpillar avatar Aug 23 '13 14:08 signalpillar

@postamar is this project still being maintained?

mgrubb avatar Oct 09 '13 19:10 mgrubb

They need to add another clojure collaborator for this, I think the maintainer of this got busy.

benzap avatar Mar 21 '15 17:03 benzap

Anyone volunteers to be a new maintainer?

keleshev avatar Mar 31 '15 11:03 keleshev

@postamar please let us know if you are still interested in this project.

keleshev avatar Mar 31 '15 11:03 keleshev

Sure! Sorry for not responding sooner. Please give me a few days to get up to date, I'll be more active henceforth, and if I can't, I'll let you know.

postamar avatar Mar 31 '15 15:03 postamar

Hey @keleshev, @mgrubb, @signalpillar and @benzap I created a first alpha version of a complete rewrite of the docopt clojure implementation. If you could check it out and give some feedback and submit any pull-request I would greatly appreciate it :) IMO the new implementation is extremely easy to understand and is quite concise (<200 loc) so hacking it shouldnt be a problem.

Loooking forward to your feedback

carocad avatar Sep 15 '15 20:09 carocad

@postamar Currently the example in the readme doesn’t work with the version on Clojars!

Please can you at least fix the issue with the -main docstring being parsed, bump the version number and upload to Clojars?

Perhaps you can also add @carocad as a maintainer since he has taken the time to do a simpler re-write that may be the future of the project.

Thanks

oemmerson avatar Oct 16 '15 17:10 oemmerson