use clap::Parser;
use super::{Params, Style};
#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(override_usage = "brewr [OPTIONS] (no options defaults to update brew)")]
pub struct Args {
#[arg(short, long, conflicts_with = "leaves")]
pub all: bool,
#[arg(short, long)]
pub leaves: bool,
#[arg(short, long, value_enum, default_value_t = Style::Blank)]
pub style: Style,
}
pub fn params() -> Params {
let Args { all, leaves, style } = Args::parse();
Params::new(all, leaves, style)
}