From cd3658d457bec1c50f96d0ca40e003eb1a8506f9 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Wed, 2 Feb 2022 00:33:47 +0900 Subject: [PATCH] Ensure short option description is not overridden Without this the description for `-o` was being set to "Set the page margins when printing text files" --- share/functions/__fish_complete_lpr.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_lpr.fish b/share/functions/__fish_complete_lpr.fish index eb157a392..74616e15d 100644 --- a/share/functions/__fish_complete_lpr.fish +++ b/share/functions/__fish_complete_lpr.fish @@ -19,7 +19,6 @@ function __fish_complete_lpr -d 'Complete lpr common options' --argument-names c switch $cmd case lp lpr - complete -c $cmd -s o -d 'Sets a job option' -xa '(__fish_complete_lpr_option)' complete -c $cmd -s m -d 'Send an email on job completion' complete -c $cmd -s o -xa landscape -d 'Landscape mode' @@ -33,5 +32,7 @@ function __fish_complete_lpr -d 'Complete lpr common options' --argument-names c complete -c $cmd -s o -xa 'cpi=' -d 'Set the number of characters per inch to use' complete -c $cmd -s o -xa 'lpi=' -d 'Set the number of lines per inch to use' complete -c $cmd -s o -xa 'page-bottom= page-left= page-right= page-top=' -d 'Set the page margins when printing text files' + # this must be last + complete -c $cmd -s o -d 'Sets a job option' -xa '(__fish_complete_lpr_option)' end end