File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 33_comp_cmd_wget ()
44{
55 local cur prev words cword was_split comp_args
6- _comp_initialize -s -- " $@ " || return
6+ _comp_initialize -s -n : - - " $@ " || return
77
88 local noargopts=' !(-*|*[DPoaOitTwlQeBUARIX]*)'
99 # shellcheck disable=SC2254
@@ -16,7 +16,7 @@ _comp_cmd_wget()
1616 return
1717 ;;
1818 --bind-address)
19- _comp_compgen_ip_addresses
19+ _comp_compgen_ip_addresses -a
2020 return
2121 ;;
2222 --domains | --exclude-domains | -${noargopts} D)
Original file line number Diff line number Diff line change @@ -9,3 +9,8 @@ def test_1(self, completion):
99 @pytest .mark .complete ("wget --s" , require_cmd = True )
1010 def test_2 (self , completion ):
1111 assert completion
12+
13+ @pytest .mark .complete ("wget --bind-address=:" )
14+ def test_3 (self , completion ):
15+ # Binding to ipv6 localhost
16+ assert ":1" in completion
You can’t perform that action at this time.
0 commit comments