chore: apply suggestions from code review

This commit is contained in:
Joshua Horton 2025-01-14 10:40:38 +07:00
parent 7ebad957b9
commit 1ffae64dfb
2 changed files with 3 additions and 3 deletions

View file

@ -1407,7 +1407,7 @@ _builder_parse_expanded_parameters() {
# internal reporting function, ignores all other parameters
_builder_report_dependencies
;;
--builder_completion_describe)
--builder-completion-describe)
_builder_completion_describe
exit 0
;;

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# As this script must be sourced by shells to be useful, no practical #shebang is possible.
# Note: must 'source' this file again in the terminal after any edits!
_comp_builder() {
@ -25,7 +25,7 @@ _comp_builder() {
# Is it actually a builder-script? If not, abort. If so, it defines
# a special option used to provide us with completion-target data.
local builder_params=`${CMD_PATH} --builder_completion_describe` || exit 0
local builder_params=`${CMD_PATH} --builder-completion-describe` || exit 0
local BASE_NAME=$(basename "$CMD_PATH")
local BUILDER_ARG_STR="${COMP_LINE##*${BASE_NAME} }"