Browse Source

using clap parser

main
crunk 1 year ago
parent
commit
4f58b1c1ee
  1. 7
      src/main.rs

7
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,
}

Loading…
Cancel
Save