refactoring macOS command completions
This commit is contained in:
parent
e673a26633
commit
9a54b251df
|
|
@ -34,10 +34,10 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments -s \
|
||||||
'-b[Show Bonjour advertised networkQuality servers]' \
|
'-b[Show Bonjour advertised networkQuality servers]' \
|
||||||
'-B[Run against specified Bonjour instance]:name' \
|
'-B[Run against specified Bonjour instance]:name' \
|
||||||
'-C[Use custom configuration URL or path]:url_or_path' \
|
'-C[Use custom configuration URL or path]:url_or_path:_urls' \
|
||||||
'-f[Force usage of a specific protocol selection]:option:(h1 h2 h3 L4S noL4S)' \
|
'-f[Force usage of a specific protocol selection]:option:(h1 h2 h3 L4S noL4S)' \
|
||||||
'-I[Bind test to interface]:interface:_net_interfaces' \
|
'-I[Bind test to interface]:interface:_net_interfaces' \
|
||||||
'-M[Maximum runtime in seconds]:seconds' \
|
'-M[Maximum runtime in seconds]:seconds' \
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
_arguments \
|
_arguments -s \
|
||||||
'-c[force screen capture to go to the clipboard]' \
|
'-c[force screen capture to go to the clipboard]' \
|
||||||
'(-i -J -s -w -W)-b[capture touch bar only non interactive modes]' \
|
'(-i -J -s -w -W)-b[capture touch bar only non interactive modes]' \
|
||||||
'(-b -i -J -s -w -W)-C[capture the cursor as well as the screen only in non interactive modes]' \
|
'(-b -i -J -s -w -W)-C[capture the cursor as well as the screen only in non interactive modes]' \
|
||||||
|
|
|
||||||
|
|
@ -39,15 +39,15 @@ local -a format=(txt html rtf rtfd doc docx wordml odt webarchive)
|
||||||
_arguments -S \
|
_arguments -S \
|
||||||
'-help[Show the usage information for the command and exit]' \
|
'-help[Show the usage information for the command and exit]' \
|
||||||
'-info[Display information about the specified files]' \
|
'-info[Display information about the specified files]' \
|
||||||
'-convert[Convert the specified files to the indicated format and write]:format:'"($format)" \
|
'-convert[Convert the specified files to the indicated format and write]:format:(($format))' \
|
||||||
'-cat[Read the specified files, concatenate them in the indicated format]:format:'"($format)" \
|
'-cat[Read the specified files, concatenate them in the indicated format]:format:(($format))' \
|
||||||
'-extension[Specify an extension to be used for output files]:ext' \
|
'-extension[Specify an extension to be used for output files]:ext' \
|
||||||
'-output[Specify the file name to be used for the first output file]:path:_files' \
|
'-output[Specify the file name to be used for the first output file]:path:_files' \
|
||||||
'-stdin[Specify that input should be read from stdin rather than from files]' \
|
'-stdin[Specify that input should be read from stdin rather than from files]' \
|
||||||
'-stdout[Specify that the first output file should go to stdout]' \
|
'-stdout[Specify that the first output file should go to stdout]' \
|
||||||
'-encoding[Specify the encoding to be used for plain text or HTML output files]:encode' \
|
'-encoding[Specify the encoding to be used for plain text or HTML output files]:name' \
|
||||||
'-inputencoding[Force all plain text input files to be interpreted using the specified encoding]' \
|
'-inputencoding[Force all plain text input files to be interpreted using the specified encoding]' \
|
||||||
'-format[Force all input files to be interpreted using the indicated format]:format:'"($format)" \
|
'-format[Force all input files to be interpreted using the indicated format]:format:(($format))' \
|
||||||
'-font[Specify the name of the font to be used for converting plain to rich text]:font' \
|
'-font[Specify the name of the font to be used for converting plain to rich text]:font' \
|
||||||
'-fontsize[Specify the size in points of the font to be used for converting plain to rich text]:size' \
|
'-fontsize[Specify the size in points of the font to be used for converting plain to rich text]:size' \
|
||||||
'-noload[Do not load subsidiary resources]' \
|
'-noload[Do not load subsidiary resources]' \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue