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