From b0f1a555375520b5c3030afae05cdcdb6e6af6b4 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sat, 27 Jul 2019 04:26:38 -0700 Subject: [PATCH] completions: --pages --- misc/completion/ocrmypdf.bash | 2 +- misc/completion/ocrmypdf.fish | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/completion/ocrmypdf.bash b/misc/completion/ocrmypdf.bash index 64df612d..9ea30f3d 100644 --- a/misc/completion/ocrmypdf.bash +++ b/misc/completion/ocrmypdf.bash @@ -58,7 +58,7 @@ _ocrmypdf() COMPREPLY=( $( compgen -W '{1..13}' -- "$cur" ) ) return ;; - --sidecar|--title|--author|--subject|--keywords|--unpaper-args) + --sidecar|--title|--author|--subject|--keywords|--unpaper-args|--pages) # argument required but no completions available return ;; diff --git a/misc/completion/ocrmypdf.fish b/misc/completion/ocrmypdf.fish index 645f6f98..81d24e6c 100644 --- a/misc/completion/ocrmypdf.fish +++ b/misc/completion/ocrmypdf.fish @@ -78,6 +78,7 @@ complete -c ocrmypdf -x -l jpeg-quality -d "JPEG quality [0..100]" complete -c ocrmypdf -x -l png-quality -d "PNG quality [0..100]" complete -c ocrmypdf -x -l jbig2-lossy -d "enable lossy JBIG2 (see docs)" complete -c ocrmypdf -x -l max-image-mpixels -d "image decompression bomb threshold" +complete -c ocrmypdf -x -l pages -d "apply OCR to only the specified pages" complete -c ocrmypdf -x -l tesseract-config -d "set custom tesseract config file" function __fish_ocrmypdf_tesseract_pagesegmode