From 5c338d1692fcf22a3138c49559121eb53905d9c4 Mon Sep 17 00:00:00 2001 From: mwaeckerlin Date: Thu, 28 Sep 2017 15:56:20 +0200 Subject: [PATCH] added possibility to document template parameters --- template.sh | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/template.sh b/template.sh index d781f47..166e458 100755 --- a/template.sh +++ b/template.sh @@ -2,11 +2,20 @@ while test $# -gt 0; do case "$1" in - (-h|--help) cat < my-site.yaml EOF + fi exit;; (-v|--var) shift; if [[ $1 =~ ^[a-zA-Z][a-zA-Z0-9_]*= ]]; then @@ -107,6 +123,6 @@ if ! test -e "$file"; then exit 1 fi -eval "cat <