improve completion
This commit is contained in:
parent
e3d40bb8cd
commit
7f4e639b37
|
@ -144,11 +144,8 @@ fn print_simple_completion(
|
|||
args.remove(0);
|
||||
print_simple_completion(cli_cmd, done, &arg_param[1..], args);
|
||||
return;
|
||||
}
|
||||
} else if args.len() == 1 {
|
||||
if let Some((_, schema)) = cli_cmd.info.parameters.properties.get(prop_name) {
|
||||
if args.is_empty() {
|
||||
print_property_completion(schema, prop_name, &cli_cmd.completion_functions, "");
|
||||
} else {
|
||||
print_property_completion(schema, prop_name, &cli_cmd.completion_functions, &args[0]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue