b9533ccac2846d74693158eef1759d198231a79b

Author
Frederick Zhang <frederick888@tsundere.moe>
Committer
Frederick Zhang <frederick888@tsundere.moe>
Date

Message

complete --message-format

Diff

 1diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
 2index 99eac2bdbc46689151e5d953ea741fb6c6fce5b3..7ed95c0ce23eecd033a474ea505a881168d5ffee 100644
 3--- a/plugins/cargo/_cargo
 4+++ b/plugins/cargo/_cargo
 5@@ -34,6 +34,7 @@ case $state in
 6                     '--target=[target triple]: :_get_targets' \
 7                     '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
 8                     '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
 9+                    '--message-format=[error format]:format option:(human json)' \
10                     '--color=[coloring]:colorization option:(auto always never)' \
11                     ;;
12 
13@@ -51,6 +52,7 @@ case $state in
14                     '--target=[target triple]: :_get_targets' \
15                     '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
16                     '(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
17+                    '--message-format=[error format]:format option:(human json)' \
18                     '--color=[coloring]:colorization option:(auto always never)' \
19                     ;;
20 
21@@ -259,12 +261,14 @@ case $state in
22                     '--release=[build in release mode]' \
23                     '--target=[target triple]' \
24                     '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
25+                    '--message-format=[error format]:format option:(human json)' \
26                     '--color=[coloring]:colorization option:(auto always never)' \
27                     '*: :_normal' \
28                     ;;
29 
30             rustc)
31                 _arguments \
32+                    '--message-format=[error format]:format option:(human json)' \
33                     '--color=[coloring]:colorization option:(auto always never)' \
34                     '--features=[features to compile for the package]' \
35                     '--all-features[enable all available features]' \
36@@ -283,6 +287,7 @@ case $state in
37 
38             rustdoc)
39                 _arguments \
40+                    '--message-format=[error format]:format option:(human json)' \
41                     '--color=[coloring]:colorization option:(auto always never)' \
42                     '--features=[space-separated list of features to also build]' \
43                     '--all-features[enable all available features]' \
44@@ -325,6 +330,7 @@ case $state in
45                     '--release[build artifacts in release mode, with optimizations]' \
46                     '--target=[target triple]: :_get_targets' \
47                     '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
48+                    '--message-format=[error format]:format option:(human json)' \
49                     '--color=[coloring]:colorization option:(auto always never)' \
50                     '1: :_test_names' \
51                     ;;