extern crate tvdb;
extern crate argparse;

use argparse::{ArgumentParser, Store};


fn main(){
    let mut series_name = "".to_owned();
    let mut season_no = 1;
    let mut episode_no = 1;

    {
        let mut ap = ArgumentParser::new();
        ap.refer(&mut series_name).add_argument("series", Store, "Series name");
        ap.refer(&mut season_no).add_argument("season", Store, "Season number");
        ap.refer(&mut episode_no).add_argument("episode", Store, "Episode number");
        ap.parse_args_or_exit();
    }

    // Construct API object
    let api = tvdb::Tvdb::new("0629B785CE550C8D");

    // Search for series
    let sr = api.search(&series_name, "en").ok().unwrap();

    // Loop over found series
    for r in sr.iter(){
        // Print: "Series Name" (id: 12345)
        println!("{:?} (id: {})", r.seriesname, r.seriesid);

        // Get episode information
        println!("{:?}", api.episode(&sr[0], season_no, episode_no));
    }
}

extern crate tvdb;
extern crate argparse;

use argparse::{ArgumentParser, StoreTrue, Store};


fn main(){
    let mut series_name = "".to_owned();
    let mut season_no = 1;
    let mut episode_no = 1;

    {
        let mut ap = ArgumentParser::new();
        ap.refer(&mut series_name).add_argument("series", Store, "Series name");
        ap.refer(&mut season_no).add_argument("season", Store, "Season number");
        ap.refer(&mut episode_no).add_argument("episode", Store, "Episode number");
        ap.parse_args_or_exit();
    }

    // Construct API object
    let api = tvdb::Tvdb::new("0629B785CE550C8D");

    // Search for series
    let sr = api.search(&series_name, "en").ok().unwrap();

    // Loop over found series
    for r in sr.iter(){
        // Print: "Series Name" (id: 12345)
        println!("{:?} (id: {})", r.seriesname, r.seriesid);

        // Get episode information
        println!("{:?}", api.episode(&sr[0], season_no, episode_no));
    }
}

--- 
+++ 
@@ -1,7 +1,7 @@
 extern crate tvdb;
 extern crate argparse;
 
-use argparse::{ArgumentParser, StoreTrue, Store};
+use argparse::{ArgumentParser, Store};
 
 
 fn main(){
Remove unused StoreTrue from example
