FEATURE: Turn on validate_mode for the validate subcommand only.

This commit is contained in:
Jeremy Wall 2018-06-04 22:22:44 -05:00
parent 3144adbd05
commit d9c9874788

View File

@ -94,6 +94,7 @@ fn main() {
} else if let Some(matches) = app.subcommand_matches("validate") { } else if let Some(matches) = app.subcommand_matches("validate") {
let file = matches.value_of("INPUT").unwrap(); let file = matches.value_of("INPUT").unwrap();
let mut builder = build::Builder::new(std::env::current_dir().unwrap()); let mut builder = build::Builder::new(std::env::current_dir().unwrap());
builder.enable_validate_mode();
builder.build_file(file).unwrap(); builder.build_file(file).unwrap();
println!("File Validates"); println!("File Validates");
process::exit(0); process::exit(0);