-
Notifications
You must be signed in to change notification settings - Fork 7
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
Please add perl implementation #5
Comments
Great!
|
|
r"""usage: prog (-a -b)
options:
-a
-b
"""
$ prog -a -b
{"-a": true, "-b": true}
$ prog -b -a
{"-a": true, "-b": true} Inside I recommend you to use Feel free to ask me questions. |
|
|
I suggest you to create testcases.docopt to JSON converter. It helps porters. |
I ported from docopt's HEAD. Then I use testcases.docopt from HEAD :P |
@tokuhirom do you still not want to consider joining the github org? 😉 |
@keleshev tokuhirom's port hasn't been updated in over a year. Could it be copied to this organization for further work? |
@alexchandel what kind of further work does it require? Do you want to do it? |
@keleshev I mentioned a few issues in the repo, but it basically isn't usable. Sadly I'm not experienced enough in Perl to maintain it, but I may be able to offer a branch. |
I was about to open an issue against the project because I'm having problems with some things. I think the testcases.docopt could use some extra cases for a few things it doesn't cover right now.
EDIT: A few days of hacking later I've decided there isn't anything wrong with Docopt.pm. I'm not sure why this works on the web interface, but it should have required "options:" before the options.
EDIT: This works too, once you get around the parser errors caused by Pod::Usage.
EDIT: All of that was caused by Pod::Usage. If you indent the input then Pod formats it properly and Docopt.pm can read it. I'm submitting patches to Docopt.pm to update the documentation for clarity. |
https://github.com/tokuhirom/Docopt
I wrote a perl implementation.
The text was updated successfully, but these errors were encountered: