Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchou committed Nov 25, 2023
1 parent 617b90e commit c22f0a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fn main() -> std::io::Result<()> {
{
// init AppOptions
let app = command!() // requires `cargo` feature
.arg(arg!([path] "target path to clean up"))
.arg(arg!([path] "target path to clean up").value_parser(value_parser!(PathBuf)))
.arg(
arg!(-c --config <FILE> "Sets a custom config file")
// We don't have syntax yet for optional options, so manually calling `required`
Expand Down Expand Up @@ -321,12 +321,15 @@ fn main() -> std::io::Result<()> {
};
}
if app_options.verbose >= 2 {
println!("{app_options:#?}");
println!("{:#?}", app_options);
}

let config_file = app_options.config_file;

let pattern_matcher = PatternMatcher::from_config_file(&config_file).unwrap();
if app_options.verbose >= 3 {
println!("{:#?}", pattern_matcher);
}

let mut pending_remove: Vec<(PathBuf, String)> = vec![];
let mut pending_rename: Vec<(PathBuf, String)> = vec![];
Expand Down

0 comments on commit c22f0a3

Please sign in to comment.