diff options
author | syn <isaqtm@gmail.com> | 2020-01-17 00:12:10 +0300 |
---|---|---|
committer | syn <isaqtm@gmail.com> | 2020-01-17 00:12:10 +0300 |
commit | b2735f4d41c8f8aef9007c66d259f3153d2ce5c1 (patch) | |
tree | eb0e95bcfa894b1eaeefca1a5e73faf8d0d6c7d0 | |
parent | 263ade47ba4ca15d8166f5bbd220b6ab9dc091c8 (diff) | |
download | evr-b2735f4d41c8f8aef9007c66d259f3153d2ce5c1.tar.gz |
Get rid of some options
-rw-r--r-- | src/main.rs | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/main.rs b/src/main.rs index 589cae2..de12b5c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,14 +23,6 @@ struct EVROpts { #[structopt(long, index = 1)] src: String, - /// be quiet - #[structopt(short, long)] - quiet: bool, - - /// optimize with this level - #[structopt(short, long)] - opt: Option<u8>, - /// show time (wall) #[structopt(short, long)] time: bool, @@ -42,19 +34,13 @@ struct EVROpts { fn main() { let opts = EVROpts::from_args(); - if !opts.quiet { - env_logger::builder() - .format_timestamp(None) - .init(); - } - - trace!("{:#?}", opts); + env_logger::builder() + .format_timestamp(None) + .init(); let src_path: std::path::PathBuf = opts.src.into(); let config = conf::get_conf(); - trace!("{:#?}", config); - let result = if src_path.exists() { config.run(&src_path) |