src/cli/command.rs - get_nested_completion: return nothing if first argument does not match
This commit is contained in:
		| @ -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() { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user