use clap::Parser;
#[derive(Parser, Debug)]
#[command(name = "cargo-q")]
pub struct Cli {
pub command_string: String,
#[arg(short, long)]
pub verbose: bool,
#[arg(short, long)]
pub parallel: bool,
}
impl Cli {
pub fn parse() -> Self {
let args = std::env::args()
.collect::<Vec<_>>()
.into_iter()
.filter(|arg| arg != "q")
.collect::<Vec<_>>();
Self::parse_from(args)
}
}