File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3
3
_comp_cmd_wget ()
4
4
{
5
5
local cur prev words cword was_split comp_args
6
- _comp_initialize -s -- " $@ " || return
6
+ _comp_initialize -s -n : - - " $@ " || return
7
7
8
8
local noargopts=' !(-*|*[DPoaOitTwlQeBUARIX]*)'
9
9
# shellcheck disable=SC2254
@@ -16,7 +16,7 @@ _comp_cmd_wget()
16
16
return
17
17
;;
18
18
--bind-address)
19
- _comp_compgen_ip_addresses
19
+ _comp_compgen_ip_addresses -a
20
20
return
21
21
;;
22
22
--domains | --exclude-domains | -${noargopts} D)
Original file line number Diff line number Diff line change @@ -9,3 +9,8 @@ def test_1(self, completion):
9
9
@pytest .mark .complete ("wget --s" , require_cmd = True )
10
10
def test_2 (self , completion ):
11
11
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