use std::path::PathBuf;
use clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(name = "layer-conform", version, about = "Detect layer style deviations")]
pub struct Cli {
#[command(subcommand)]
pub command: Option<Cmd>,
#[arg(long, value_name = "N", global = true)]
pub threshold: Option<f64>,
#[arg(long, global = true)]
pub no_color: bool,
#[arg(long, global = true)]
pub json: bool,
}
#[derive(Subcommand, Debug)]
pub enum Cmd {
Check {
#[arg(value_name = "PATH")]
paths: Vec<PathBuf>,
#[arg(long, value_name = "FILE")]
explain: Option<PathBuf>,
},
Init {
#[arg(long)]
force: bool,
},
Why {
#[arg(value_name = "FILE")]
file: PathBuf,
},
}