From db0a79d3815b792831025e7e5267bde9310c0a2c Mon Sep 17 00:00:00 2001 From: ozzy Date: Sun, 30 Aug 2026 16:07:41 -0500 Subject: [PATCH] feat(cli): add descriptions of args/flags --- src/cli.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index ecdac75..5e7a231 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -5,11 +5,18 @@ use clap::Parser; #[derive(Parser, Debug)] #[command(version, about, long_about = None)] pub struct Args { + /// word to define pub word: String, + + /// language of the word #[arg(short, long, default_value = "en")] pub language: String, + + /// parts of speech to show #[arg(short, long, default_values = constants::POSSIBLE_PARTS_OF_SPEECH)] pub parts_of_speech: Vec, + + /// show examples for definitions #[arg(short, long, action = clap::ArgAction::SetTrue)] pub examples: bool, }