mirror of
https://github.com/SinTan1729/movie-rename.git
synced 2024-12-26 12:18:37 -06:00
Bug fix for argument parsing
This commit is contained in:
parent
7e833a4ed0
commit
5ce914bddb
1 changed files with 2 additions and 2 deletions
|
@ -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<String>) -> (Vec<String>, HashMap<&'static str, bo
|
|||
exit(0);
|
||||
}
|
||||
other => {
|
||||
if other.contains("-") {
|
||||
if other.starts_with("-") {
|
||||
eprintln!("Unknown argument passed: {}", other);
|
||||
} else {
|
||||
entries.push(arg);
|
||||
|
|
Loading…
Reference in a new issue