We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b41b97c commit 436b0cbCopy full SHA for 436b0cb
completions/tshark
@@ -58,11 +58,8 @@ _tshark()
58
[[ ${COMPREPLY-} == *: ]] && compopt -o nospace
59
return
60
;;
61
- -*r)
62
- _filedir '@(pcap?(ng)|cap)?(.gz)'
63
- return
64
- ;;
65
- -*H)
+ -*[rH])
+ # -r accepts a lot of different file types
66
_filedir
67
68
test/t/test_tshark.py
@@ -28,3 +28,7 @@ def test_5(self, completion):
28
def test_6(self, completion):
29
"""Test there are no URLs in completions."""
30
assert not any("://" in x for x in completion)
31
+
32
+ @pytest.mark.complete("tshark -r ")
33
+ def test_input_files(self, completion):
34
+ assert completion
0 commit comments