update comments
This commit is contained in:
parent
8091e51d19
commit
8552345acf
1 changed files with 2 additions and 1 deletions
3
sf
3
sf
|
|
@ -74,10 +74,11 @@ declare -A _sfargs
|
||||||
sfargs=("${sfargs[@]}" "help;h;Show this help message and exit")
|
sfargs=("${sfargs[@]}" "help;h;Show this help message and exit")
|
||||||
for a in "${sfargs[@]}"; do
|
for a in "${sfargs[@]}"; do
|
||||||
|
|
||||||
# Get amount of ;
|
# Get amount of semicolons
|
||||||
_sfsubst=${a//";"}
|
_sfsubst=${a//";"}
|
||||||
_sfcount="$(((${#a} - ${#_sfsubst})))"
|
_sfcount="$(((${#a} - ${#_sfsubst})))"
|
||||||
|
|
||||||
|
# Positional arguments
|
||||||
if [ "$_sfcount" -eq 1 ]; then
|
if [ "$_sfcount" -eq 1 ]; then
|
||||||
|
|
||||||
# Read positional argument declaration
|
# Read positional argument declaration
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue