@@ -49,9 +49,9 @@ _comp_cmd_wget()
4949 local lastopt=${cur/* ,/ } prevopt=
5050 [[ $cur == * ,* ]] && prevopt=${cur% ,* } ,
5151
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 '
5555
5656 # +o nospace when no more valid option is possible (= append a space)
5757 local opt_as_arr=(${COMPREPLY[0]// ,/ } )
@@ -89,15 +89,15 @@ _comp_cmd_wget()
8989 local lastopt=${cur/* ,/ } prevopt=
9090 [[ $cur == * ,* ]] && prevopt=${cur% ,* } ,
9191
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 '
101101 return
102102 ;;
103103 --tries | --timeout | --dns-timeout | --connect-timeout | \
0 commit comments