File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ _comp_cmd_curl()
54
54
--proxy-header | -${noargopts} [dH])
55
55
if [[ $cur == \@ * ]]; then
56
56
_comp_compgen -c " ${cur: 1} " filedir
57
+ _comp_compgen -a -c " ${cur: 1} " -- -W ' -'
57
58
if [[ ${# COMPREPLY[@]} -eq 1 && -d ${COMPREPLY[0]} ]]; then
58
59
COMPREPLY[0]+=/
59
60
compopt -o nospace
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ def test_4(self, completion):
20
20
21
21
@pytest .mark .complete ("curl --data @" , cwd = "shared/default/foo.d" )
22
22
def test_data_atfile (self , completion ):
23
- assert completion == "foo"
23
+ assert "@foo" in completion
24
+ assert "@-" in completion
24
25
25
26
@pytest .mark .complete ("curl --data @foo." , cwd = "shared/default" )
26
27
def test_data_atfile_dir (self , completion ):
You can’t perform that action at this time.
0 commit comments