docopt / docopt.c

C-code generator for docopt language.
MIT License
318 stars 46 forks source link

Adds a CLI to docopt_c.py #6

Closed ffunenga closed 11 years ago

ffunenga commented 11 years ago

Sorry for the mistakes. When provided, the template is opened inside the __parse_cli function and exceptions are handled there. I've tried it with a template and it is working fine. Errors are also being handled correctly.

ffunenga commented 11 years ago

Wait a sec! The shbang line needs to be the first one, changing it now...

keleshev commented 11 years ago

oh, actually [options] stay [options] (since it's not a positional argument)

ffunenga commented 11 years ago

About the template's variable name I think that in order to follow pep08 (http://www.python.org/dev/peps/pep-0008/#constants) it should be "written in all capital letters with underscores separating words". The template is a constant right?

BTW, shouldn't we embed the MIT-License header in the template?