diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-02-25 10:58:39 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-02-25 10:58:39 +0800 |
| commit | 6bd344793e5c2e84361475d6e221007ef21faaad (patch) | |
| tree | 4d2cb4148b534381b5d110b97a690d8bfd921855 /src/bin/jvn.rs | |
| parent | 5f3d4892a12189e88e692eabdd5f8fe68c79b23e (diff) | |
Remove ambiguous command error and auto-select longest match
Diffstat (limited to 'src/bin/jvn.rs')
| -rw-r--r-- | src/bin/jvn.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/bin/jvn.rs b/src/bin/jvn.rs index 1dbc517..7ec1f4d 100644 --- a/src/bin/jvn.rs +++ b/src/bin/jvn.rs @@ -101,18 +101,6 @@ async fn main() { CmdProcessError::NoMatchingCommand => { handle_no_matching_command_error(args); } - CmdProcessError::AmbiguousCommand(nodes) => { - let nodes_list = nodes - .iter() - .enumerate() - .map(|(i, node)| format!("{}. {}", i + 1, node)) - .collect::<Vec<String>>() - .join("\n"); - eprintln!( - "{}", - md(t!("process_error.ambiguous_command", nodes = nodes_list)) - ); - } CmdProcessError::ParseError(help) => { if help.trim().len() < 1 { eprintln!("{}", md(t!("process_error.parse_error"))); |
