From 4f58b1c1ee7d8400e56403bc03d310a0c8b78d63 Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 22 Oct 2023 19:35:48 +0200 Subject: [PATCH] using clap parser --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c400f29..f67f343 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,9 +4,14 @@ use clap::Parser; /// Search for a pattern in a file and display the lines that contain it. #[derive(Parser)] - +#[command(name = "crunk-update")] +#[command(author = "Crunk")] +#[command(version = "1.0")] +#[command(about = "post updates to crunk-schedulers", long_about = None)] struct Cli { + #[arg(long)] url: String, + #[arg(long)] text: String, }