src/cli/completion.rs - get_help_completion: fix for "help -" expansion
This commit is contained in:
parent
e8e9bae4d1
commit
524b22df35
@ -138,6 +138,10 @@ fn get_help_completion(
|
|||||||
return Vec::new();
|
return Vec::new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if first.starts_with("-") {
|
||||||
|
return get_simple_completion(help_cmd, &mut done, &[], args);
|
||||||
|
}
|
||||||
|
|
||||||
let mut completions = Vec::new();
|
let mut completions = Vec::new();
|
||||||
for cmd in map.commands.keys() {
|
for cmd in map.commands.keys() {
|
||||||
if cmd.starts_with(first) {
|
if cmd.starts_with(first) {
|
||||||
|
Loading…
Reference in New Issue
Block a user