set verbosity level on config

This commit is contained in:
Jake Howard 2017-07-20 09:24:04 +01:00
parent 2304ccccbe
commit 3dd9cc4ea9
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 4 additions and 3 deletions

View file

@ -13,7 +13,8 @@ pub mod validate_types;
pub struct Config {
pub input: Vec<PathBuf>,
pub output: HashMap<String, PathBuf>,
pub title: String
pub title: String,
pub verbosity: u64,
}
impl Config {

View file

@ -5,7 +5,6 @@ extern crate serde_derive;
extern crate serde_yaml;
mod args;
mod config;
mod process;
@ -17,7 +16,8 @@ mod tests;
fn main() {
let args = args::get_matches();
if args.subcommand_name().unwrap() == "build" {
let config = config::get_config();
let mut config = config::get_config();
config.verbosity = args::get_verbose(args);
process::build(config);
}
}