tvheadend: tv_grab_file: add --quiet

ref 01e7cc1478
This commit is contained in:
Stefan Saraev 2014-12-01 11:56:58 +02:00 committed by Stephan Raue
parent 9cbd29574d
commit a0d63b96be

View File

@ -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