2
0

fix(cli): show help instead of TUI when no subcommand given

This commit is contained in:
2026-03-24 15:01:01 +09:00
parent a3065415f7
commit 5de89b16b9

View File

@@ -26,7 +26,8 @@ fn main() {
println!("{}", env!("CARGO_PKG_VERSION")); println!("{}", env!("CARGO_PKG_VERSION"));
} }
Some("help" | "--help" | "-h") => print_help(), Some("help" | "--help" | "-h") => print_help(),
None | Some("tui") => { None => print_help(),
Some("tui") => {
// Show logo before entering alternate screen // Show logo before entering alternate screen
eprintln!("\x1b[38;5;226m{}\x1b[0m\n\x1b[1m aishell\x1b[0m v{}\n", eprintln!("\x1b[38;5;226m{}\x1b[0m\n\x1b[1m aishell\x1b[0m v{}\n",
LOGO, env!("CARGO_PKG_VERSION")); LOGO, env!("CARGO_PKG_VERSION"));