From 2342768616bd4cf9520c330927a3376cab03b54c Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 26 Feb 2018 23:21:09 +0100 Subject: [PATCH] bin/pdfctl: Fix argument check when 0 --- .local/bin/pdfctl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/pdfctl b/.local/bin/pdfctl index 3c0a1ab0..4fa63146 100755 --- a/.local/bin/pdfctl +++ b/.local/bin/pdfctl @@ -14,7 +14,7 @@ List of commands and their options: compress [OPTIONS] Compress PDFs. -c: Compress raster graphics at the expense of a quality loss. - -n: Do not compress raster graphics at all. Output may be bigger. + -n: Do not compress raster graphics at all. Output may be bigger. extract [-f FIRST-PAGE] [-l LAST-PAGE] Extract a range of pages to a single PDF. @@ -39,6 +39,8 @@ For more details on compression: EOF } +[ $# -eq 0 ] && usage && exit + cmd="$1" shift 1