@@ -15,16 +15,16 @@ _my-app() {
15
15
16
16
local context curcontext=" $curcontext " state line
17
17
_arguments " ${_arguments_options[@]} " \
18
- ' * --single-quotes[Can be ' \' ' always' \' ' , ' \' ' auto' \' ' , or ' \' ' never' \' ' ]' \
19
- ' * --double-quotes[Can be "always", "auto", or "never"]' \
20
- ' * --backticks[For more information see `echo test`]' \
21
- ' * --backslash[Avoid ' \' ' \\n' \' ' ]' \
22
- ' * --brackets[List packages \[filter\]]' \
23
- ' * --expansions[Execute the shell command with $SHELL]' \
24
- ' * -h[Print help information]' \
25
- ' * --help[Print help information]' \
26
- ' * -V[Print version information]' \
27
- ' * --version[Print version information]' \
18
+ ' --single-quotes[Can be ' \' ' always' \' ' , ' \' ' auto' \' ' , or ' \' ' never' \' ' ]' \
19
+ ' --double-quotes[Can be "always", "auto", or "never"]' \
20
+ ' --backticks[For more information see `echo test`]' \
21
+ ' --backslash[Avoid ' \' ' \\n' \' ' ]' \
22
+ ' --brackets[List packages \[filter\]]' \
23
+ ' --expansions[Execute the shell command with $SHELL]' \
24
+ ' -h[Print help information]' \
25
+ ' --help[Print help information]' \
26
+ ' -V[Print version information]' \
27
+ ' --version[Print version information]' \
28
28
" :: :_my-app_commands" \
29
29
" *::: :->my-app" \
30
30
&& ret=0
@@ -36,38 +36,38 @@ _my-app() {
36
36
case $line [1] in
37
37
(cmd-single-quotes)
38
38
_arguments " ${_arguments_options[@]} " \
39
- ' * -h[Print help information]' \
40
- ' * --help[Print help information]' \
39
+ ' -h[Print help information]' \
40
+ ' --help[Print help information]' \
41
41
&& ret=0
42
42
;;
43
43
(cmd-double-quotes)
44
44
_arguments " ${_arguments_options[@]} " \
45
- ' * -h[Print help information]' \
46
- ' * --help[Print help information]' \
45
+ ' -h[Print help information]' \
46
+ ' --help[Print help information]' \
47
47
&& ret=0
48
48
;;
49
49
(cmd-backticks)
50
50
_arguments " ${_arguments_options[@]} " \
51
- ' * -h[Print help information]' \
52
- ' * --help[Print help information]' \
51
+ ' -h[Print help information]' \
52
+ ' --help[Print help information]' \
53
53
&& ret=0
54
54
;;
55
55
(cmd-backslash)
56
56
_arguments " ${_arguments_options[@]} " \
57
- ' * -h[Print help information]' \
58
- ' * --help[Print help information]' \
57
+ ' -h[Print help information]' \
58
+ ' --help[Print help information]' \
59
59
&& ret=0
60
60
;;
61
61
(cmd-brackets)
62
62
_arguments " ${_arguments_options[@]} " \
63
- ' * -h[Print help information]' \
64
- ' * --help[Print help information]' \
63
+ ' -h[Print help information]' \
64
+ ' --help[Print help information]' \
65
65
&& ret=0
66
66
;;
67
67
(cmd-expansions)
68
68
_arguments " ${_arguments_options[@]} " \
69
- ' * -h[Print help information]' \
70
- ' * --help[Print help information]' \
69
+ ' -h[Print help information]' \
70
+ ' --help[Print help information]' \
71
71
&& ret=0
72
72
;;
73
73
(help)
0 commit comments