use clap::Parser;
use nyar_error::NyarError;
#[derive(Parser)]
pub struct RunCommand {
#[clap(long)]
debug: bool,
#[clap(long)]
release: bool,
#[arg(short, long, action = clap::ArgAction::Count)]
optimize: u8,
}
impl RunCommand {
pub fn run(&self) -> Result<(), NyarError> {
if self.release {
println!("Running in release mode: {}", self.optimize);
} else {
println!("Running in debug mode");
}
Ok(())
}
}