use clap::Parser;
#[derive(Debug, Parser)]
#[clap(author, version, about)]
pub struct Args {
pub word: String,
#[clap(short, long)]
pub examples: bool,
#[clap(long)]
pub no_types: bool,
#[clap(long)]
pub no_colour: bool,
#[clap(short, long)]
pub phonetic: bool,
#[clap(short, long)]
pub synonyms: bool,
#[clap(short, long)]
pub antonyms: bool,
#[clap(short, long)]
pub verbose: bool,
#[clap(short, long)]
pub max: Option<usize>,
}
impl Args {
pub fn show_all(&mut self) {
self.examples = true;
self.phonetic = true;
self.synonyms = true;
self.antonyms = true;
}
}