feat: use vector for --allowlist and --blocklist for passing multiples
This commit is contained in:
parent
8983863ffa
commit
266a00d983
2 changed files with 6 additions and 4 deletions
|
@ -41,13 +41,15 @@ pub struct Args {
|
|||
pub split_to: Option<PathBuf>,
|
||||
|
||||
/// An allowlist of files to keep, in .gitignore format.
|
||||
/// Can be passed multiple times.
|
||||
/// Note: this will take precedence over all other removal decisions.
|
||||
#[arg(long, value_parser = AbsolutePathBufValueParser::default())]
|
||||
pub allowlist: Option<PathBuf>,
|
||||
pub allowlist: Vec<PathBuf>,
|
||||
|
||||
/// A blocklist of files to remove, in .gitignore format.
|
||||
/// Can be passed multiple times.
|
||||
#[arg(long)]
|
||||
pub blocklist: Option<PathBuf>,
|
||||
pub blocklist: Vec<PathBuf>,
|
||||
|
||||
/// An optional path to save the file graph of the DSO cleaner
|
||||
/// in GraphViz format. Useful for debugging.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue