summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 57f8529..1621e1b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -2,10 +2,11 @@ extern crate lazy_static;
use clap::{ AppSettings, App, Arg };
use env_logger;
-use log::{ trace, error };
+use log::{ error };
mod conf;
mod backends;
+mod wait;
fn main() {
let matches = App::new("evr")
@@ -42,13 +43,17 @@ fn main() {
let result =
if src_path.exists() {
- config.run(&src_path)
+ config.run(
+ &src_path,
+ matches.is_present("time"),
+ matches.is_present("mem")
+ )
} else {
config.make(&src_path)
};
match result {
- Ok(_) => trace!("ok"),
+ Ok(_) => {},
Err(err) => error!("{}", err)
}
}