using clap parser
This commit is contained in:
parent
c9d2715af1
commit
4f58b1c1ee
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user