1 2 3 4 5 6 7 8 9 10 11 12 13 14
use clap::Parser; use simple_logger::SimpleLogger; mod command; use command::Command; fn main() -> anyhow::Result<()> { let command = Command::parse(); SimpleLogger::from(command.log_level).env().init()?; command.execute() }