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 ";;
--version) args="${args}-v ";;
--capabilities) args="${args}-c ";;
--quiet) args="${args}-q ";;
#pass through anything else
*) [[ "${arg:0:1}" == "-" ]] || delim="\""
args="${args}${delim}${arg}${delim} ";;
@ -61,11 +62,12 @@ done
#Reset the positional parameters to the short options
eval set -- $args
while getopts "dvc" option; do
while getopts "dvcq" option; do
case $option in
d) dflag=1;;
v) vflag=1;;
c) cflag=1;;
q) ;;
\?) printf "unknown option: -%s\n" $OPTARG
printf "Usage: %s: [--description] [--version] [--capabilities] \n" $(basename $0)
exit 2