From 524b22df357d3cdf6bac665f9241d22d169f0484 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 2 Dec 2019 11:11:31 +0100 Subject: [PATCH] src/cli/completion.rs - get_help_completion: fix for "help -" expansion --- src/cli/completion.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/completion.rs b/src/cli/completion.rs index 15734934..2df2ddfb 100644 --- a/src/cli/completion.rs +++ b/src/cli/completion.rs @@ -138,6 +138,10 @@ fn get_help_completion( return Vec::new(); } + if first.starts_with("-") { + return get_simple_completion(help_cmd, &mut done, &[], args); + } + let mut completions = Vec::new(); for cmd in map.commands.keys() { if cmd.starts_with(first) {