Add multi source files option in Bash version.
This commit is contained in:
parent
c4817634d5
commit
728fa33f94
|
@ -61,7 +61,7 @@ show_error() {
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_documentation() {
|
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=$(echo "$documentation" | sed -r "s/## ?//" | sed -r "s/@script.name/$(basename "$0")/g" | sed "s/@#/@/g")
|
||||||
documentation=${documentation%(no-trim)}
|
documentation=${documentation%(no-trim)}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue