tolower() a été renommé strlower()
This commit is contained in:
parent
e8481054f4
commit
220ba12950
|
@ -1 +1 @@
|
|||
003006000
|
||||
003006001
|
||||
|
|
|
@ -2549,7 +2549,7 @@ function __po_process_options() {
|
|||
function __genparse_shortopt() {
|
||||
local LC_COLLATE=C
|
||||
local shortopt="${1//[^A-Z]}"
|
||||
shortopt="$(tolower "${shortopt:0:1}")"
|
||||
shortopt="$(strlower "${shortopt:0:1}")"
|
||||
[ -n "$shortopt" ] && echo "$shortopt"
|
||||
}
|
||||
HELP_DESC=
|
||||
|
@ -2616,7 +2616,7 @@ function genparse() {
|
|||
if [[ "$var" == *=* ]]; then
|
||||
splitvar "$var" name value
|
||||
shortopt="$(__genparse_shortopt "$name")"
|
||||
option="$(tolower "$name")"
|
||||
option="$(strlower "$name")"
|
||||
name="${option//-/_}"
|
||||
array_add names "$name"
|
||||
array_add descs "${shortopt:+-$shortopt, }--$option VALUE"
|
||||
|
@ -2625,7 +2625,7 @@ function genparse() {
|
|||
else
|
||||
name="$var"
|
||||
shortopt="$(__genparse_shortopt "$name")"
|
||||
option="$(tolower "$name")"
|
||||
option="$(strlower "$name")"
|
||||
name="${option//-/_}"
|
||||
array_add names "$name"
|
||||
array_add descs "${shortopt:+-$shortopt, }--$option"
|
||||
|
|
Loading…
Reference in New Issue