From 46bbb3edeee87cdd56caae39778c7d82088070b4 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 8 Dec 2022 18:44:10 -0600 Subject: [PATCH] Fixed typo in dry-run detection --- src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0074c02..1f32913 100644 --- a/src/main.rs +++ b/src/main.rs @@ -147,11 +147,7 @@ fn process_movie(filename: &String, tmdb: &TMDb, pattern: &str) -> (String, Vec< Some(year) => { 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(); @@ -224,7 +220,7 @@ fn process_args(mut args: Vec) -> (Vec, HashMap<&'static str, bo println!(" Pass --help to get this again."); exit(0); } - "--dry_run" => { + "--dry-run" => { println!("Doing a dry run..."); settings.entry("dry_run").and_modify(|x| *x = true); }