From fb8a00bc00f7d4832a47fd9779e7b6edf779d466 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sun, 1 Dec 2019 11:06:54 +0100 Subject: [PATCH] src/cli/command.rs - get_nested_completion: allow fuzzy match --- src/cli/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/command.rs b/src/cli/command.rs index c66849df..f07a50d5 100644 --- a/src/cli/command.rs +++ b/src/cli/command.rs @@ -283,7 +283,7 @@ pub fn get_nested_completion( } let first = &args[0]; if args.len() > 1 { - if let Some(sub_cmd) = map.commands.get(first) { + if let Some((_, sub_cmd)) = map.find_command(first) { return get_nested_completion(sub_cmd, &args[1..]); } return Vec::new();