feat(cli): implement clap
added clap, justfile now allows passing args to run recipe
This commit is contained in:
+10
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user