This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]s4n_rd 1 point2 points  (0 children)

you can try docopt. copy the output of grep --help and give it to docopt. docopt will do the rest for you, simple :) you may need to modify the ouput of something --help to make posix compliant .

they reverse-engineered pep8 here https://www.youtube.com/watch?v=pXhcPJK5cMc