fix(completions/zsh.zsh): Remove redundant code from output

Fixes #1142
This commit is contained in:
Segev Finer 2018-01-10 19:44:35 +02:00
parent d78341f640
commit 0e185b922e
2 changed files with 1 additions and 13 deletions

View file

@ -91,12 +91,7 @@ pub fn subcommands_of(p: &Parser) -> Vec<(String, String)> {
p.has_subcommands()
);
if !p.has_subcommands() {
let mut ret = vec![
(
p.meta.name.clone(),
p.meta.bin_name.as_ref().unwrap().clone(),
),
];
let mut ret = vec![];
debugln!("subcommands_of: Looking for aliases...");
if let Some(ref aliases) = p.meta.aliases {
for &(n, _) in aliases {

View file

@ -675,13 +675,6 @@ _my_app() {
}
(( $+functions[_my_app_commands] )) ||
_my_app_commands() {
local commands; commands=(
)
_describe -t commands 'my_app commands' commands "$@"
}
(( $+functions[_my_app_commands] )) ||
_my_app_commands() {
local commands; commands=(