File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 57
57
return
58
58
fi
59
59
60
+ local word
61
+ for word in " ${words[@]} " ; do
62
+ [[ $word != --? (json)args ]] || return
63
+ done
64
+
60
65
local args
61
66
# TODO: DTRT with args taking 2 options
62
67
# -f|--from-file are not counted here because they supply the filter
Original file line number Diff line number Diff line change @@ -28,3 +28,11 @@ def test_5(self, completion):
28
28
@pytest .mark .complete ("jq --slurpfile foo " )
29
29
def test_6 (self , completion ):
30
30
assert completion
31
+
32
+ @pytest .mark .complete ("jq --args " )
33
+ def test_no_completion_after_args (self , completion ):
34
+ assert not completion
35
+
36
+ @pytest .mark .complete ("jq --jsonargs foo " )
37
+ def test_no_completion_after_jsonargs (self , completion ):
38
+ assert not completion
You can’t perform that action at this time.
0 commit comments