Skip to content

Commit

Permalink
on parsing error return erro code
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Ratés committed Jan 12, 2024
1 parent 0f9b373 commit c38b06f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
use getopts::Options;
use osd::download_link;
use osd::download_save_sub;
use osd::login;
use osd::search_for_subtitle_id_key;
use osd::Movie;
use osd::Url;
use serde::Deserialize;
use serde::Serialize;
use std::env;
use std::error::Error;
use std::process;
use osd::{Url, download_link, download_save_sub, login, search_for_subtitle_id_key, Movie};
use serde::{Deserialize, Serialize};
use std::{env, error::Error, process::{self}};

//fn _type_of<T>(_: &T) {
// println!("{}", std::any::type_name::<T>())
Expand Down Expand Up @@ -140,7 +132,7 @@ impl ParsedArgs {
Err(f) => {
println!("{}", f);
print_help(opts);
std::process::exit(0);
std::process::exit(1);
}
};

Expand Down

0 comments on commit c38b06f

Please sign in to comment.