use anyhow::Result;
use crate::app;
#[derive(clap::Args, Debug)]
#[command()]
pub struct Cli {
#[arg(long)]
licenses_only: bool,
}
impl Cli {
pub fn exec(self) -> Result<()> {
let check = if self.licenses_only {
"licenses"
} else {
"all"
};
app::exec(
"cargo",
[
"deny",
"--log-level",
"error",
"--all-features",
"check",
check,
],
true,
)
}
}