We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 805270d commit 787b2b1Copy full SHA for 787b2b1
completions/jq
@@ -57,6 +57,11 @@ _jq()
57
return
58
fi
59
60
+ local word
61
+ for word in "${words[@]}"; do
62
+ [[ $word != --?(json)args ]] || return
63
+ done
64
+
65
local args
66
# TODO: DTRT with args taking 2 options
67
# -f|--from-file are not counted here because they supply the filter
test/t/test_jq.py
@@ -28,3 +28,11 @@ def test_5(self, completion):
28
@pytest.mark.complete("jq --slurpfile foo ")
29
def test_6(self, completion):
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
0 commit comments