vanity_ssh_rs/cli/args.rs
1use clap::Parser;
2
3#[derive(Parser)]
4#[command(author, version, about, long_about = None)]
5pub struct Args {
6 /// The pattern to match in the public key. Use /regex/ for regex patterns, otherwise matches suffix.
7 pub pattern: String,
8
9 /// Number of threads to use (defaults to number of CPU cores)
10 #[arg(short, long)]
11 pub threads: Option<usize>,
12
13 /// ntfy.sh topic to notify when key is found
14 #[arg(long)]
15 pub ntfy: Option<String>,
16}