feat(cli): implement clap

added clap, justfile now allows passing args to run recipe
This commit is contained in:
2026-08-30 15:12:25 -05:00
parent 939defca26
commit 9bed16badc
2 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ _default:
# Run the bot # Run the bot
[group('dev')] [group('dev')]
run: run *args:
cargo run cargo run {{args}}
# Clean up previous builds # Clean up previous builds
[group('build')] [group('build')]
+10 -1
View File
@@ -1,4 +1,13 @@
use clap::Parser;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {
word: String,
}
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
println!("Hello, dictionary!"); let args = Args::parse();
println!("{:?}", args);
} }