3 ms·
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
by politician 12y ago
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/main.go#L187-L228 https://github.com/politician/azb.go/blob/master/src/cmd/azb...
- gnoway 12y agoI 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/GoGetoptProblem http://utcc.utoronto.ca/~cks/space/blog/programming/GoGetopt...
- politician 12y agoWow, that post is spot-on; thanks.