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)} }