Fixed typo in dry-run detection

This commit is contained in:
Sayantan Santra 2022-12-08 18:44:10 -06:00
parent c95095f35f
commit 46bbb3edee

View file

@ -147,11 +147,7 @@ fn process_movie(filename: &String, tmdb: &TMDb, pattern: &str) -> (String, Vec<
Some(year) => { Some(year) => {
search.year(year as u64); search.year(year as u64);
} }
_ => { _ => {}
eprintln!(
"Year is currently needed for the search to work, please add year in the filename." // TODO Add support for missing year
);
}
} }
let mut results = Vec::new(); let mut results = Vec::new();
@ -224,7 +220,7 @@ fn process_args(mut args: Vec<String>) -> (Vec<String>, HashMap<&'static str, bo
println!(" Pass --help to get this again."); println!(" Pass --help to get this again.");
exit(0); exit(0);
} }
"--dry_run" => { "--dry-run" => {
println!("Doing a dry run..."); println!("Doing a dry run...");
settings.entry("dry_run").and_modify(|x| *x = true); settings.entry("dry_run").and_modify(|x| *x = true);
} }