3 # Function harvestHelp searches in run.sh part for line starting with "##<name command>".
4 # Next lines starting with "#<text>" will be printed without first char # (=help content).
5 # Help content has to end with "##" on new line.
8 # Foo is world wide used synnonym for bar.
10 function harvestHelp() {
12 if [ -z "${key}" ]; then
16 sed -rn "/^##${key}$/,/^##/ p" $0 | sed -r '1 d; $ d; s/^#/ /'
17 grep "##${key}" $0 > /dev/null