From b2337212d28d052aa58a287fc96a03baa8a4d755 Mon Sep 17 00:00:00 2001 From: mwaeckerlin Date: Thu, 28 Sep 2017 16:08:52 +0200 Subject: [PATCH] added possibility to document template parameters --- template.sh | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/template.sh b/template.sh index 166e458..7658578 100755 --- a/template.sh +++ b/template.sh @@ -3,8 +3,9 @@ while test $# -gt 0; do case "$1" in (-h|--help) if test -e "${!#}"; then + sed -n 's,^ *# \( *[^-]\),\1,p' "${!#}" cat <