diff --git a/case-lib/opt.sh b/case-lib/opt.sh index 7f08690d..d633cc95 100644 --- a/case-lib/opt.sh +++ b/case-lib/opt.sh @@ -34,7 +34,7 @@ func_opt_parse_option() # removing the leading '##' or '## ' from documentation. _dump_case_description() { - grep '^##' "$SCRIPT_NAME" | sed 's/^##//g' | sed 's/^ //g' + grep '^##' "$0" | sed 's/^##//g' | sed 's/^ //g' } # This function helps to fill below four variables