From 5ce914bddbcf3f79d91d20f546764a6597e5adcf Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Thu, 8 Dec 2022 22:56:14 -0600 Subject: [PATCH] Bug fix for argument parsing --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 002d6bf..f572a98 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use tmdb::{model::*, themoviedb::*}; use torrent_name_parser::Metadata; use youchoose; -const VERSION: &str = "1.1.1"; +const VERSION: &str = "1.1.2"; // Struct for movie entries struct MovieEntry { title: String, @@ -293,7 +293,7 @@ fn process_args(mut args: Vec) -> (Vec, HashMap<&'static str, bo exit(0); } other => { - if other.contains("-") { + if other.starts_with("-") { eprintln!("Unknown argument passed: {}", other); } else { entries.push(arg);