Skip to content

Commit 9a76361

Browse files
committed
argsparse.sh: misc minor changes
1 parent 7fdc1cc commit 9a76361

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

argsparse.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,7 @@ declare -A __argsparse_tmp_identifiers=()
14361436
# argsparse_parse_options().
14371437

14381438

1439-
# @fn _argsparse_check_declaration_conflict()
1439+
# @fn __argsparse_check_declaration_conflict()
14401440
# @brief Internal use.
14411441
# @details Check if an option conflicts with another and, if it does,
14421442
# prints the conflicted option.
@@ -1556,12 +1556,12 @@ argsparse_is_option_set() {
15561556

15571557

15581558
# @private
1559-
# @fn __max_length()
1559+
# @fn __argsparse_max_length()
15601560
# @details Prints the length of the longest argument _or_ 50.
15611561
# @brief Internal use.
15621562
# @param string... a list of strings
15631563
# @return 0
1564-
__max_length() {
1564+
__argsparse_max_length() {
15651565
local max=50
15661566
shift
15671567
local max_length=0 str
@@ -1581,7 +1581,7 @@ __max_length() {
15811581
## @retval 0
15821582
argsparse_report() {
15831583
local option array_name value
1584-
local length=$(__max_length "${!__argsparse_options_descriptions[@]}")
1584+
local length=$(__argsparse_max_length "${!__argsparse_options_descriptions[@]}")
15851585
local -a array options
15861586

15871587
if __argsparse_is_array_declared __argsparse_tmp_identifiers
@@ -1617,7 +1617,7 @@ argsparse_report() {
16171617
fi
16181618
printf ')\n'
16191619
else
1620-
printf '%s\n' no
1620+
printf 'no\n'
16211621
fi
16221622
done
16231623
}

0 commit comments

Comments
 (0)