use clap::Parser;
use std::path::PathBuf;
#[derive(Parser)]
#[command(name = "validate")]
#[command(about = "Validate Sherwood templates")]
struct Cli {
#[arg(short, long)]
templates: Option<PathBuf>,
#[arg(long)]
verbose: bool,
}
fn main() {
let cli = Cli::parse();
if let Err(e) = sherwood::validate_templates(&cli.templates, cli.verbose) {
eprintln!("Error validating templates: {}", e);
std::process::exit(1);
}
}