Cleanup code

This commit is contained in:
Shohei YOSHIDA
2024-08-04 14:19:29 +09:00
parent 8abb801db2
commit 4dfb7a51c5
11 changed files with 174 additions and 163 deletions
+18 -23
View File
@@ -39,29 +39,24 @@
#
# ------------------------------------------------------------------------------
local curcontext="$curcontext" state line
typeset -A opt_args
local -a arguments
arguments=(
'--version[output version information]'
'(-h --help)'{-h,--help}'[show help]'
'(-c --vgl-compress)'{-c,--vgl-compress}'[image transport method]:method:(proxy jpeg rgb xb yuv)'
'--failsafe[run a program even if the nvidia card is unavailable]:boolean:(true false)'
'--no-failsafe[do not run a program if the nvidia card is unavailable]'
'--vgl-options[options to be passed to vglrun (example: +tr)]'
'(-q --quiet --silent)'{-q,--quiet,--silent}'[suppress all logging messages]'
'(-v --verbose)'{-v,--verbose}'[increase the verbosity level of log messages]'
'--debug[set the verbosity level to the maximum]'
'(-b --bridge)'{-b,--bridge}'[specify bridge library to use: VirtualGL, Primus or auto]:method:(auto primus virtualgl none)'
'(-d --display)'{-d,--display}'[the X display number to use]'
'(-C --config)'{-C,--config}'[retrieve settings for Bumblebee from FILE]:file:_files'
'(-l --ldpath)'{-l,--ldpath}'[PATH the libraries like libGL.so are searched in]:file:_files'
'--primus-ldpath[a colon-separated list of paths which are searched for the primus libGL.so.1]:file:_files'
'(-s --socket)'{-s,--socket}'[use FILE for communication with the daemon]:file:_files'
'--no-xorg[do not start secondary X server (implies -b none)]'
'*::arguments: _normal'
local -a arguments=(
'--version[output version information]'
'(-h --help)'{-h,--help}'[show help]'
'(-c --vgl-compress)'{-c,--vgl-compress}'[image transport method]:method:(proxy jpeg rgb xb yuv)'
'--failsafe[run a program even if the nvidia card is unavailable]:boolean:(true false)'
'--no-failsafe[do not run a program if the nvidia card is unavailable]'
'--vgl-options[options to be passed to vglrun (example: +tr)]'
'(-q --quiet --silent)'{-q,--quiet,--silent}'[suppress all logging messages]'
'(-v --verbose)'{-v,--verbose}'[increase the verbosity level of log messages]'
'--debug[set the verbosity level to the maximum]'
'(-b --bridge)'{-b,--bridge}'[specify bridge library to use: VirtualGL, Primus or auto]:method:(auto primus virtualgl none)'
'(-d --display)'{-d,--display}'[the X display number to use]:display:_x_display'
'(-C --config)'{-C,--config}'[retrieve settings for Bumblebee from FILE]:file:_files'
'(-l --ldpath)'{-l,--ldpath}'[PATH the libraries like libGL.so are searched in]:file:_files -/'
'--primus-ldpath[a colon-separated list of paths which are searched for the primus libGL.so.1]:file:_files'
'(-s --socket)'{-s,--socket}'[use FILE for communication with the daemon]:file:_files'
'--no-xorg[do not start secondary X server (implies -b none)]'
'*::arguments: _normal'
)
_arguments $arguments