use std::path::PathBuf;
use structopt::StructOpt;
#[derive(StructOpt, Debug)]
#[structopt(name = "quicktest")]
pub enum Opt {
TLE {
#[structopt(short = "t", long = "target-file", parse(from_os_str))]
target_file: PathBuf,
#[structopt(short = "g", long = "gen-file", parse(from_os_str))]
gen_file: PathBuf,
#[structopt(short = "o", long = "timeout", default_value = "2000")]
timeout: u32,
#[structopt(short = "n", long = "test-cases", default_value = "1000")]
test_cases: u32,
#[structopt(short = "b", long = "tle-break")]
tle_break: bool,
#[structopt(short = "s", long = "save-cases")]
save_cases: bool,
},
Cmp {
#[structopt(short = "t", long = "target-file", parse(from_os_str))]
target_file: PathBuf,
#[structopt(short = "c", long = "correct-file", parse(from_os_str))]
correct_file: PathBuf,
#[structopt(short = "g", long = "gen-file", parse(from_os_str))]
gen_file: PathBuf,
#[structopt(short = "o", long = "timeout", default_value = "2000")]
timeout: u32,
#[structopt(short = "n", long = "test-cases", default_value = "1000")]
test_cases: u32,
#[structopt(short = "b", long = "wa-break")]
wa_break: bool,
#[structopt(short = "s", long = "save-cases")]
save_cases: bool,
},
}