From 5b64ac79bfec65784cdcccdceca8c33fd6734669 Mon Sep 17 00:00:00 2001 From: Amir Abushareb Date: Mon, 13 Jun 2016 11:31:36 +0200 Subject: [PATCH] add usage --- main.go | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ab1396a..5f137f9 100644 --- a/main.go +++ b/main.go @@ -17,8 +17,23 @@ import ( const version = "" const usage = ` Usage: - tf-docs - tf-docs md + tf-docs + tf-docs md + 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() {