Make fuzzer examples's argument parser tell that --input is mandatory (#1973)

* add

* not ture

* fmt
This commit is contained in:
Dongjia "toka" Zhang 2024-03-26 20:02:42 +01:00 committed by GitHub
parent cd12546748
commit f0ee6e0587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 28 additions and 4 deletions

View File

@ -75,7 +75,13 @@ struct Opt {
#[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")] #[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")]
remote_broker_addr: Option<SocketAddr>, remote_broker_addr: Option<SocketAddr>,
#[arg(short, long, help = "Set an initial corpus directory", name = "INPUT")] #[arg(
short,
long,
help = "Set an initial corpus directory",
name = "INPUT",
required = true
)]
input: Vec<PathBuf>, input: Vec<PathBuf>,
#[arg( #[arg(

View File

@ -73,7 +73,13 @@ struct Opt {
#[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")] #[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")]
remote_broker_addr: Option<SocketAddr>, remote_broker_addr: Option<SocketAddr>,
#[arg(short, long, help = "Set an initial corpus directory", name = "INPUT")] #[arg(
short,
long,
help = "Set an initial corpus directory",
name = "INPUT",
required = true
)]
input: Vec<PathBuf>, input: Vec<PathBuf>,
#[arg( #[arg(

View File

@ -73,7 +73,13 @@ struct Opt {
#[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")] #[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")]
remote_broker_addr: Option<SocketAddr>, remote_broker_addr: Option<SocketAddr>,
#[arg(short, long, help = "Set an initial corpus directory", name = "INPUT")] #[arg(
short,
long,
help = "Set an initial corpus directory",
name = "INPUT",
required = true
)]
input: Vec<PathBuf>, input: Vec<PathBuf>,
#[arg( #[arg(

View File

@ -73,7 +73,13 @@ struct Opt {
#[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")] #[arg(short = 'a', long, help = "Specify a remote broker", name = "REMOTE")]
remote_broker_addr: Option<SocketAddr>, remote_broker_addr: Option<SocketAddr>,
#[arg(short, long, help = "Set an the corpus directories", name = "INPUT")] #[arg(
short,
long,
help = "Set an the corpus directories",
name = "INPUT",
required = true
)]
input: Vec<PathBuf>, input: Vec<PathBuf>,
#[arg( #[arg(