using clap parser

This commit is contained in:
crunk 2023-10-22 19:35:48 +02:00
parent c9d2715af1
commit 4f58b1c1ee

View File

@ -4,9 +4,14 @@ use clap::Parser;
/// Search for a pattern in a file and display the lines that contain it. /// Search for a pattern in a file and display the lines that contain it.
#[derive(Parser)] #[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 { struct Cli {
#[arg(long)]
url: String, url: String,
#[arg(long)]
text: String, text: String,
} }