remove output of empty default values
This commit is contained in:
parent
da3bffba6c
commit
1bed0499ab
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
2
sf
2
sf
|
|
@ -133,7 +133,7 @@ for a in "${sfargs[@]}"; do
|
||||||
_sfohead="-${_sfparsearr[1]}, --${_sfparsearr[0]} ${_sfparsearr[2]}"
|
_sfohead="-${_sfparsearr[1]}, --${_sfparsearr[0]} ${_sfparsearr[2]}"
|
||||||
[ "${#_sfohead}" -gt "${_sfooffset}" ] && _sfooffset="${#_sfohead}"
|
[ "${#_sfohead}" -gt "${_sfooffset}" ] && _sfooffset="${#_sfohead}"
|
||||||
_sfoheads+=("$_sfohead")
|
_sfoheads+=("$_sfohead")
|
||||||
_sfotails+=("${_sfparsearr[4]} (default: ${_sfparsearr[3]})")
|
[ "${_sfparsearr[3]}" != "" ] && _sfotails+=("${_sfparsearr[4]} (default: ${_sfparsearr[3]})") || _sfotails+=("${_sfparsearr[4]}")
|
||||||
|
|
||||||
else
|
else
|
||||||
_sferr "Wrong argument declaration: $a"
|
_sferr "Wrong argument declaration: $a"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue