mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
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"
This commit is contained in:
parent
a03e245e13
commit
cd3658d457
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue