Merge pull request #7514 from keymanapp/fix/common/7512-help-formatting-builder

fix(common): ignore deps when formatting help
This commit is contained in:
Marc Durdin 2022-10-25 05:57:43 +11:00 committed by GitHub
commit 4d430d67c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -512,9 +512,11 @@ builder_describe() {
local dependency="${value:1}"
dependency="`_builder_expand_relative_path "$dependency"`"
_builder_deps+=($dependency)
# echo "$description"
_builder_dep_related_actions[$dependency]="`_builder_expand_action_targets "$description"`"
# echo "${_builder_dep_related_actions[$dependency]}"
# We don't want to add deps to params, so shift+continue
shift
continue
elif [[ $value =~ ^-- ]]; then
# Parameter is an option
# Look for a shorthand version of the option