Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Have you tried docopt? The usage string is a DSL which makes it painless to create command-line programs with great (and synchronized) help text.

Check out an example: https://github.com/politician/azb.go/blob/master/src/cmd/azb...



I think you just illustrated the point of a prior blog post[0] linked from this one.

[0] http://utcc.utoronto.ca/~cks/space/blog/programming/GoGetopt...


Wow, that post is spot-on; thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: