From caf201beead19b68857e2ce2807dc852efe3dea9 Mon Sep 17 00:00:00 2001 From: Otthorn Date: Mon, 15 Feb 2021 00:30:29 +0100 Subject: [PATCH] :art: tabs are ugly, long live spaces --- pdf-optimize.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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