diff --git a/pdf-optimize.sh b/pdf-optimize.sh index d2a8678..41da97b 100755 --- a/pdf-optimize.sh +++ b/pdf-optimize.sh @@ -5,11 +5,11 @@ function usage { echo "usage: pdf-optimize [options] input.pdf" echo " "; - echo " -o | --output : output filename"; - echo " -q | --quiet : run quietly"; - echo " -v | --verbose : run verbosly"; - echo " -y | --yes-to-replace : yes to replace existing files"; - echo " -h | --help : print this message"; + echo " -o | --output : output filename"; + echo " -q | --quiet : run quietly"; + echo " -v | --verbose : run verbosly"; + echo " -y | --yes-to-replace : yes to replace existing files"; + echo " -h | --help : print this message"; echo " "; echo "If no output path is specified, given input.pdf as input will output input_compressed.pdf" @@ -27,12 +27,12 @@ function arg_parse while [ "$1" != "" ]; do case "$1" in - -o | --output ) output_path="$2"; shift;; - -q | --quiet ) quiet=1;; - -v | --verbose ) verbose=1;; - -y | --yes-to-replace ) replace=1;; - -h | --help ) usage; exit;; - * ) args+=("$1") + -o | --output ) output_path="$2"; shift;; + -q | --quiet ) quiet=1;; + -v | --verbose ) verbose=1;; + -y | --yes-to-replace ) replace=1;; + -h | --help ) usage; exit;; + * ) args+=("$1") esac shift done