mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
parent
9cbd29574d
commit
a0d63b96be
@ -52,6 +52,7 @@ for arg; do
|
|||||||
--description) args="${args}-d ";;
|
--description) args="${args}-d ";;
|
||||||
--version) args="${args}-v ";;
|
--version) args="${args}-v ";;
|
||||||
--capabilities) args="${args}-c ";;
|
--capabilities) args="${args}-c ";;
|
||||||
|
--quiet) args="${args}-q ";;
|
||||||
#pass through anything else
|
#pass through anything else
|
||||||
*) [[ "${arg:0:1}" == "-" ]] || delim="\""
|
*) [[ "${arg:0:1}" == "-" ]] || delim="\""
|
||||||
args="${args}${delim}${arg}${delim} ";;
|
args="${args}${delim}${arg}${delim} ";;
|
||||||
@ -61,11 +62,12 @@ done
|
|||||||
#Reset the positional parameters to the short options
|
#Reset the positional parameters to the short options
|
||||||
eval set -- $args
|
eval set -- $args
|
||||||
|
|
||||||
while getopts "dvc" option; do
|
while getopts "dvcq" option; do
|
||||||
case $option in
|
case $option in
|
||||||
d) dflag=1;;
|
d) dflag=1;;
|
||||||
v) vflag=1;;
|
v) vflag=1;;
|
||||||
c) cflag=1;;
|
c) cflag=1;;
|
||||||
|
q) ;;
|
||||||
\?) printf "unknown option: -%s\n" $OPTARG
|
\?) printf "unknown option: -%s\n" $OPTARG
|
||||||
printf "Usage: %s: [--description] [--version] [--capabilities] \n" $(basename $0)
|
printf "Usage: %s: [--description] [--version] [--capabilities] \n" $(basename $0)
|
||||||
exit 2
|
exit 2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user