diff --git a/justfile b/justfile index 178e507..bae980c 100644 --- a/justfile +++ b/justfile @@ -3,8 +3,8 @@ _default: # Run the bot [group('dev')] -run: - cargo run +run *args: + cargo run {{args}} # Clean up previous builds [group('build')] diff --git a/src/main.rs b/src/main.rs index a9e675d..1b29a3b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,13 @@ +use clap::Parser; + +#[derive(Parser, Debug)] +#[command(version, about, long_about = None)] +struct Args { + word: String, +} + #[tokio::main] async fn main() { - println!("Hello, dictionary!"); + let args = Args::parse(); + println!("{:?}", args); }