mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08: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
|
@ -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 New Issue
Block a user