#[macro_use] mod macros; mod connection; mod database; mod games; mod repl; use repl::ClientState; fn main() { let args: Vec = std::env::args().collect(); let unsafe_mode = args.iter().any(|arg| arg == "--unsafe"); if unsafe_mode { println!("WARNING: Running in UNSAFE mode - certificate verification disabled!"); } connection::set_unsafe_mode(unsafe_mode); let mut state = ClientState::new(); if let Some(host) = state.addr.clone() { state.connect_to(&host); } println!("Welcome to Zagan-Bet Client!"); println!("Type 'help' for available commands."); state.run(); }