src/cli/completion.rs - get_help_completion: fix for "help -" expansion

This commit is contained in:
Dietmar Maurer 2019-12-02 11:11:31 +01:00
parent e8e9bae4d1
commit 524b22df35

View File

@ -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) {