|
@@ -22,7 +22,6 @@ extern crate byteorder; |
|
|
#[macro_use] |
|
|
#[macro_use] |
|
|
extern crate serde_derive; |
|
|
extern crate serde_derive; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use clap::{AppSettings, Arg, App, SubCommand}; |
|
|
use clap::{AppSettings, Arg, App, SubCommand}; |
|
|
mod commands; |
|
|
mod commands; |
|
|
use self::commands::*; |
|
|
use self::commands::*; |
|
@@ -137,5 +136,12 @@ fn main() { |
|
|
"bench" => run_bench_cli, |
|
|
"bench" => run_bench_cli, |
|
|
_ => panic!("Subcommand {} is unknown", subcommand) |
|
|
_ => panic!("Subcommand {} is unknown", subcommand) |
|
|
}; |
|
|
}; |
|
|
run_cli(options).unwrap(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let Err(ref e) = run_cli(options) { |
|
|
|
|
|
use std::io::Write; |
|
|
|
|
|
let stderr = &mut ::std::io::stderr(); |
|
|
|
|
|
let errmsg = "Error writing ot stderr"; |
|
|
|
|
|
writeln!(stderr, "{}", e).expect(errmsg); |
|
|
|
|
|
::std::process::exit(1); |
|
|
|
|
|
} |
|
|
} |
|
|
} |