aboutsummaryrefslogtreecommitdiff
path: root/src/bin.rs
blob: 79e02c3e06d6e35b4911eed4a1640153225e5bbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_use]
extern crate clap;

use clap::App;

use chandownloader::download_thread;

fn main() {
    let yaml = load_yaml!("cli.yml");
    let matches = App::from_yaml(yaml).get_matches();

    let thread = matches.value_of("thread").unwrap();
    let output = matches.value_of("output").unwrap_or("downloads");
    download_thread(thread, &output);
}