@@ -49,9 +49,9 @@ _comp_cmd_wget()
49
49
local lastopt=${cur/* ,/ } prevopt=
50
50
[[ $cur == * ,* ]] && prevopt=${cur% ,* } ,
51
51
52
- COMPREPLY=( $( compgen -P " $prevopt " -X " @( $excludes_str ) " \
53
- -W ' unix windows nocontrol ascii lowercase uppercase ' \
54
- -- " $lastopt " ) )
52
+ _comp_compgen -c " $lastopt " -- -P " $prevopt " \
53
+ -X " @( $excludes_str ) " \
54
+ -W ' unix windows nocontrol ascii lowercase uppercase '
55
55
56
56
# +o nospace when no more valid option is possible (= append a space)
57
57
local opt_as_arr=(${COMPREPLY[0]// ,/ } )
@@ -89,15 +89,15 @@ _comp_cmd_wget()
89
89
local lastopt=${cur/* ,/ } prevopt=
90
90
[[ $cur == * ,* ]] && prevopt=${cur% ,* } ,
91
91
92
- COMPREPLY=( $( compgen - P " $prevopt " -W ' a abbr acronym address
93
- applet area b base basefont bdo big blockquote body br button
94
- caption center cite code col colgroup dd del dir div dfn dl dt
95
- em fieldset font form frame frameset h6 head hr html i iframe
96
- img input ins isindex kbd label legend li link map menu meta
97
- noframes noscript object ol optgroup option p param pre q s
98
- samp script select small span strike strong style sub sup table
99
- tbody td textarea tfoot th thead title tr tt u ul var xmp ' \
100
- -- " $lastopt " ) )
92
+ _comp_compgen -c " $lastopt " -- - P " $prevopt " -W ' a abbr acronym
93
+ address applet area b base basefont bdo big blockquote body br
94
+ button caption center cite code col colgroup dd del dir div dfn
95
+ dl dt em fieldset font form frame frameset h6 head hr html i
96
+ iframe img input ins isindex kbd label legend li link map menu
97
+ meta noframes noscript object ol optgroup option p param pre q
98
+ s samp script select small span strike strong style sub sup
99
+ table tbody td textarea tfoot th thead title tr tt u ul var
100
+ xmp '
101
101
return
102
102
;;
103
103
--tries | --timeout | --dns-timeout | --connect-timeout | \
0 commit comments