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 mut args = std::env::args().collect::<Vec<_>>();
if args.len() >= 2 && args[1] == "q" {
args.remove(1);
}
Self::parse_from(args)
}
}