add usage

This commit is contained in:
Amir Abushareb
2016-06-13 11:31:36 +02:00
parent 566bb1e12a
commit 5b64ac79bf

19
main.go
View File

@@ -17,8 +17,23 @@ import (
const version = ""
const usage = `
Usage:
tf-docs <dir>
tf-docs md <dir>
tf-docs <dir>
tf-docs md <dir>
tf-docs -h | --help
tf-docs -v | --version
Examples:
# Generate a JSON of inputs and outputs
$ tf-docs ./my-module
# Generate markdown tables of inputs and outputs
$ tf-docs md ./my-module
Options:
-h, --help show help information
-v, --version show version information
`
func main() {