mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
22cb03c236
Before:
* hand write arg parse
* only accepts one suffix
After:
* use `arg_parse` to parse args
* accepts multi suffixes
Closes #9611.
(cherry picked from commit aa65856ee0
)
10 lines
651 B
Fish
10 lines
651 B
Fish
__fish_complete_lpr lpr
|
|
complete -c lpr -k -xa "(__fish_complete_suffix .pdf .ps)"
|
|
complete -c lpr -s H -x -d 'Specifies an alternate server' -xa '(__fish_print_hostnames)'
|
|
complete -c lpr -s C -s J -s T -x -d 'Sets the job name'
|
|
#complete -c lpr -o '\\#' -d 'Sets the number of copies to print from 1 to 100' -xa
|
|
complete -c lpr -s h -d 'Disables banner printing'
|
|
complete -c lpr -s l -d 'Send print file without filtering'
|
|
complete -c lpr -s p -d 'Format the print file with a shaded header: date, time, job name, and page no.'
|
|
complete -c lpr -s q -d 'Hold job for printing'
|
|
complete -c lpr -s r -d 'Delete the specified print file after printing'
|