From 728fa33f9424a69b38b138caf60664bdf0a9a4be Mon Sep 17 00:00:00 2001 From: dig Date: Tue, 23 Apr 2019 20:04:58 +0200 Subject: [PATCH] Add multi source files option in Bash version. --- bash/easyoptions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/easyoptions.sh b/bash/easyoptions.sh index 772c0a6..1374822 100644 --- a/bash/easyoptions.sh +++ b/bash/easyoptions.sh @@ -61,7 +61,7 @@ show_error() { } parse_documentation() { - documentation="$(grep "^##" "$(which "$0")")(no-trim)" + documentation="$(cat "$0" $easyoptions_include | grep "^##")(no-trim)" documentation=$(echo "$documentation" | sed -r "s/## ?//" | sed -r "s/@script.name/$(basename "$0")/g" | sed "s/@#/@/g") documentation=${documentation%(no-trim)} }