use clap::{App, Arg};

const VERSION: Option<&'static str> = option_env!("CARGO_PKG_VERSION");

fn main() {
    let matches = App::new("AnimeBoxes Sync")
        .version(VERSION.unwrap_or("UNKNOWN"))
        .author("Drew Short <warrick@sothr.com>")
        .about("Parses AnimeBoxes backup files")
        .arg(
            Arg::with_name("config")
                .short("c")
                .value_name("FILE")
                .help("Set a custom config file")
                .takes_value(true),
        )
        .arg(
            Arg::with_name("INPUT")
                .help("The AnimeBoxes file to process")
                .required(true)
                .index(1),
        )
        .get_matches();

    let config = matches.value_of("config").unwrap_or("abs-default.conf");
    let file = matches.value_of("INPUT").unwrap();
}