docopt / docopt.c

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

Unnecessary use of cat in README #36

Open silversquirl opened 7 years ago

silversquirl commented 7 years ago

The following (taken from the README) encourages using cat when redirections would be more appropriate and (marginally) faster:

$ cat example.docopt | python docopt_c.py > docopt.c

A functionally equivalent, but slightly faster and cleaner version would be:

$ python docopt_c.py > docopt.c < example.docopt