use r4d::RadResult;
pub fn main() -> RadResult<()> {
#[cfg(feature = "color")]
colored::control::set_override(true);
#[cfg(feature = "basic")]
{
use r4d::RadCli;
use std::io::Write;
let mut cli = RadCli::new();
if let Err(err) = cli.parse() {
cli.print_error(&err.to_string())?;
writeln!(
std::io::stderr(),
"Int: Rad panicked with inrecoverable error."
)?;
std::process::exit(1);
}
}
Ok(())
}