use clap::Parser;
#[derive(Parser, Debug)]
#[command(
name = "runsible-console",
about = "Interactive REPL for the runsible engine",
version
)]
struct Cli {
#[arg(long = "target", default_value = "localhost")]
target: String,
#[arg(long = "connection", default_value = "local")]
connection: String,
#[arg(long = "user")]
user: Option<String>,
}
fn main() {
let cli = Cli::parse();
if let Err(e) = runsible_console::run_repl(&cli.target, &cli.connection, cli.user.as_deref()) {
eprintln!("runsible-console: {e}");
std::process::exit(1);
}
}