From cf85a2f2a3cc3b849feeb714a0cb89712b49681f Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Wed, 5 Jul 2017 01:19:58 -0600 Subject: [PATCH] Add more options for cargo test zsh completion --- src/etc/_cargo | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/etc/_cargo b/src/etc/_cargo index 4282994a20a..7bb68880b31 100644 --- a/src/etc/_cargo +++ b/src/etc/_cargo @@ -348,6 +348,15 @@ case $state in '(-v, --verbose)'{-v,--verbose}'[use verbose output]' \ '--color=:colorization option:(auto always never)' \ '1: :_test_names' \ + '(--doc --bin --example --test --bench)--lib[only test library]' \ + '(--lib --bin --example --test --bench)--doc[only test documentation]' \ + '(--lib --doc --example --test --bench)--bin=[binary name]' \ + '(--lib --doc --bin --test --bench)--example=[example name]' \ + '(--lib --doc --bin --example --bench)--test=[test name]' \ + '(--lib --doc --bin --example --test)--bench=[benchmark name]' \ + '--message-format:error format:(human json)' \ + '--frozen[require lock and cache up to date]' \ + '--locked[require lock up to date]' ;; uninstall)