Sweatless –help text
I just stumbled upon a nice way to generate the --help text from the comments at the top of the file. Here’s how it’s done in hub‘s build script: #!/usr/bin/env bash # Usage: script/build [-o output] [test] # # Sets up GOPATH and compiles hub. With `test`, runs tests instead. #[blah] case "$1" in #[blah] […]