drcov_merge: Make inputs seperated by space (#2740)

* drcov_merge: Make inputs seperated by space

* More doc
This commit is contained in:
Dominik Maier 2024-12-04 00:14:58 +01:00 committed by GitHub
parent 1809c31a46
commit 85796f952b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -14,3 +14,4 @@ A performant clone of [drcov-merge](https://github.com/vanhauser-thc/drcov-merge
It can merge multiple DrCov files into a single DrCov file. It can merge multiple DrCov files into a single DrCov file.
Run with `cargo run --release --bin drcov_merge -- -h` Run with `cargo run --release --bin drcov_merge -- -h`
For example `cargo run --release --bin drcov_merge -- -o merged.cov -i *`

View File

@ -1,6 +1,6 @@
use std::path::PathBuf; use std::path::PathBuf;
use clap::Parser; use clap::{ArgAction, Parser};
use libafl_targets::drcov::DrCovReader; use libafl_targets::drcov::DrCovReader;
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
@ -12,7 +12,7 @@ use libafl_targets::drcov::DrCovReader;
long_about = "Merges multiple DrCov coverage files into one" long_about = "Merges multiple DrCov coverage files into one"
)] )]
pub struct Opt { pub struct Opt {
#[arg(short, long, help = "DrCovFiles to merge", required = true)] #[arg(short, long, help = "DrCovFiles to merge", num_args = 2.., value_delimiter = ' ', required = true)]
pub inputs: Vec<PathBuf>, pub inputs: Vec<PathBuf>,
#[arg(short, long, help = "Output DrCov file")] #[arg(short, long, help = "Output DrCov file")]
pub output: PathBuf, pub output: PathBuf,