We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e7d089 + 3e55711 commit 2432551Copy full SHA for 2432551
completions/xmlwf
@@ -15,13 +15,15 @@ _xmlwf()
15
-- "$cur"))
16
return
17
;;
18
- -*v)
+ -*[abv])
19
20
21
esac
22
23
if [[ $cur == -* ]]; then
24
- COMPREPLY=($(compgen -W '$(_parse_usage "$1")' -- "$cur"))
+ COMPREPLY=($(
25
+ compgen -W '$(_parse_help "$1" || _parse_usage "$1")' -- "$cur"
26
+ ))
27
28
fi
29
test/t/test_xmlwf.py
@@ -9,3 +9,7 @@ def test_1(self, completion):
9
@pytest.mark.complete("xmlwf -", require_cmd=True)
10
def test_2(self, completion):
11
assert completion
12
+
13
+ @pytest.mark.complete("xmlwf -sa ")
14
+ def test_no_arg_to_a(self, completion):
+ assert not completion
0 commit comments