zsh: Fix 'meson init --language' completion

This commit fixes invalid syntax, which leads to

(eval):1: number expected
_arguments:465: command not found: _

when trying to complete 'meson init --language=<TAB>'.
This commit is contained in:
meator 2025-01-17 20:21:04 +01:00 committed by Jussi Pakkanen
parent 386fee2305
commit c45f80ac25
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ _arguments \
'(-n --name)'{'-n','--name'}'=[the name of the project (defaults to directory name)]'
'(-e --executable)'{'-e','--executable'}'=[the name of the executable target to create (defaults to project name)]'
'(-d --deps)'{'-d','--deps'}'=[comma separated list of dependencies]'
'(-l --language)'{'-l','--language'}'=[comma separated list of languages (autodetected based on sources if unset)]:languages:_values , (c cpp cs cuda d fortran java objc objcpp rust)'
'(-l --language)'{'-l','--language'}'=[comma separated list of languages (autodetected based on sources if unset)]:languages:_values -s , language c cpp cs cuda d fortran java objc objcpp rust'
'(-b --build)'{'-b','--build'}'[build the project immediately after generation]'
'--builddir=[directory for building]:directory:_directories'
'(-f --force)'{'-f','--force'}'[overwrite any existing files and directories]'