use clap::Parser;
#[derive(Parser, Debug)]
#[command(name = "Spawn", version, about, long_about = None)]
struct Cli {
#[arg()]
path: Option<String>,
}
fn main() {
let cli = Cli::parse();
let result: Result<usize, String> = match cli.path {
Some(_) => todo!("Implement `path`"),
None => Err("Provide a path".to_string()),
};
let code = match result {
Ok(_) => 0,
Err(message) => {
eprintln!("{}", message);
1
}
};
std::process::exit(code);
}