Skip to content

Commit

Permalink
zsh: Fix 'meson init --language' completion
Browse files Browse the repository at this point in the history
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>'.
  • Loading branch information
meator authored and jpakkane committed Jan 19, 2025
1 parent 386fee2 commit c45f80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/shell-completions/zsh/_meson
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down

0 comments on commit c45f80a

Please sign in to comment.