File tree Expand file tree Collapse file tree 17 files changed +18
-23
lines changed Expand file tree Collapse file tree 17 files changed +18
-23
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,7 @@ _comp_cmd_udevadm()
67
67
fi
68
68
69
69
if [[ $cur == -* ]]; then
70
- COMPREPLY=($( compgen -W \
71
- ' $(_parse_help "$1" "${udevcmd-} --help")' -- " $cur " ) )
70
+ _comp_compgen_help -- ${has_udevcmd: +" $udevcmd " } --help
72
71
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
73
72
fi
74
73
} &&
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ _comp_cmd_alias()
19
19
esac
20
20
21
21
if [[ $cur == -* ]]; then
22
- _comp_compgen_usage help " -s $1 "
22
+ _comp_compgen_usage -c help -s " $1 "
23
23
(( ${# COMPREPLY[*]} != 1 )) || compopt +o nospace
24
24
fi
25
25
} &&
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ _comp_cmd_asciidoc()
43
43
[[ $was_split ]] && return
44
44
45
45
if [[ $cur == -* ]]; then
46
- COMPREPLY=($( compgen -W ' $(_parse_help "$1" "--help manpage")' \
47
- -- " $cur " ) )
46
+ _comp_compgen_help -- --help manpage
48
47
[[ ${COMPREPLY-} == * = ]] && compopt -o nospace
49
48
return
50
49
fi
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ _comp_cmd_bind()
25
25
esac
26
26
27
27
if [[ $cur == -* ]]; then
28
- _comp_compgen_usage help " -s $1 "
28
+ _comp_compgen_usage -c help -s " $1 "
29
29
return
30
30
fi
31
31
Original file line number Diff line number Diff line change @@ -8,8 +8,7 @@ _comp_cmd_cd()
8
8
_comp_initialize -- " $@ " || return
9
9
10
10
if [[ $cur == -* ]]; then
11
- local cmd=$1
12
- _comp_compgen -- -W ' $(_parse_help help "$cmd")'
11
+ _comp_compgen_help -c help " $1 "
13
12
compopt +o nospace
14
13
return
15
14
fi
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ _comp_cmd_cfrun()
38
38
fi
39
39
;;
40
40
2)
41
- COMPREPLY=( $( compgen -W ' $(_parse_help cfagent) ' -- " $cur " ) )
41
+ _comp_compgen_help -c cfagent --help
42
42
;;
43
43
esac
44
44
} &&
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ _comp_cmd_curl()
158
158
esac
159
159
160
160
if [[ $cur == -* ]]; then
161
- COMPREPLY=( $( compgen -W ' $(_parse_help "$1" " --help all") ' -- " $cur " ) )
161
+ _comp_compgen_help -- --help all
162
162
[[ ${COMPREPLY-} ]] ||
163
163
COMPREPLY=($( compgen -W ' $(_parse_help "$1")' -- " $cur " ) )
164
164
fi
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ _cvs_commands()
29
29
30
30
_comp_cmd_cvs__command_options ()
31
31
{
32
- COMPREPLY=( $( compgen -W ' $(_parse_help "$1" " --help $2") ' -- " $cur " ) )
32
+ _comp_compgen_help -- --help " $2 "
33
33
}
34
34
35
35
_comp_cmd_cvs__kflags ()
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ _comp_cmd_help()
6
6
_comp_initialize -- " $@ " || return
7
7
8
8
if [[ $cur == -* ]]; then
9
- _comp_compgen_usage " $1 " " -s $1 "
9
+ _comp_compgen_usage -c help -s " $1 "
10
10
return
11
11
fi
12
12
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ _comp_cmd_kill()
18
18
if [[ $cword -eq 1 && $cur == -* ]]; then
19
19
# return list of available signals
20
20
_signals -
21
- COMPREPLY+=( $( compgen -W ' $(_parse_help help "$1") ' -- " $cur " ) )
21
+ _comp_compgen -a help -c help " $1 "
22
22
else
23
23
# return list of available PIDs and jobs
24
24
_pids
You can’t perform that action at this time.
0 commit comments