🎨 tabs are ugly, long live spaces
This commit is contained in:
parent
397039ed20
commit
caf201beea
1 changed files with 11 additions and 11 deletions
|
@ -5,11 +5,11 @@ function usage
|
||||||
{
|
{
|
||||||
echo "usage: pdf-optimize [options] input.pdf"
|
echo "usage: pdf-optimize [options] input.pdf"
|
||||||
echo " ";
|
echo " ";
|
||||||
echo " -o | --output : output filename";
|
echo " -o | --output : output filename";
|
||||||
echo " -q | --quiet : run quietly";
|
echo " -q | --quiet : run quietly";
|
||||||
echo " -v | --verbose : run verbosly";
|
echo " -v | --verbose : run verbosly";
|
||||||
echo " -y | --yes-to-replace : yes to replace existing files";
|
echo " -y | --yes-to-replace : yes to replace existing files";
|
||||||
echo " -h | --help : print this message";
|
echo " -h | --help : print this message";
|
||||||
echo " ";
|
echo " ";
|
||||||
echo "If no output path is specified, given input.pdf as input will output
|
echo "If no output path is specified, given input.pdf as input will output
|
||||||
input_compressed.pdf"
|
input_compressed.pdf"
|
||||||
|
@ -27,12 +27,12 @@ function arg_parse
|
||||||
|
|
||||||
while [ "$1" != "" ]; do
|
while [ "$1" != "" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-o | --output ) output_path="$2"; shift;;
|
-o | --output ) output_path="$2"; shift;;
|
||||||
-q | --quiet ) quiet=1;;
|
-q | --quiet ) quiet=1;;
|
||||||
-v | --verbose ) verbose=1;;
|
-v | --verbose ) verbose=1;;
|
||||||
-y | --yes-to-replace ) replace=1;;
|
-y | --yes-to-replace ) replace=1;;
|
||||||
-h | --help ) usage; exit;;
|
-h | --help ) usage; exit;;
|
||||||
* ) args+=("$1")
|
* ) args+=("$1")
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue