diff --git a/src/cli/command.rs b/src/cli/command.rs index ed7f3e28..c66849df 100644 --- a/src/cli/command.rs +++ b/src/cli/command.rs @@ -286,6 +286,7 @@ pub fn get_nested_completion( if let Some(sub_cmd) = map.commands.get(first) { return get_nested_completion(sub_cmd, &args[1..]); } + return Vec::new(); } let mut completions = Vec::new(); for cmd in map.commands.keys() {