fix(cli): show help instead of TUI when no subcommand given
This commit is contained in:
@@ -26,7 +26,8 @@ fn main() {
|
||||
println!("{}", env!("CARGO_PKG_VERSION"));
|
||||
}
|
||||
Some("help" | "--help" | "-h") => print_help(),
|
||||
None | Some("tui") => {
|
||||
None => print_help(),
|
||||
Some("tui") => {
|
||||
// Show logo before entering alternate screen
|
||||
eprintln!("\x1b[38;5;226m{}\x1b[0m\n\x1b[1m aishell\x1b[0m v{}\n",
|
||||
LOGO, env!("CARGO_PKG_VERSION"));
|
||||
|
||||
Reference in New Issue
Block a user