From 5f0812b9753ffd38724ec95de0900abb50fdac42 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 4 Jun 2018 22:22:44 -0500 Subject: [PATCH] FEATURE: Turn on validate_mode for the validate subcommand only. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index be9fc9f..f144b5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,6 +94,7 @@ fn main() { } else if let Some(matches) = app.subcommand_matches("validate") { let file = matches.value_of("INPUT").unwrap(); let mut builder = build::Builder::new(std::env::current_dir().unwrap()); + builder.enable_validate_mode(); builder.build_file(file).unwrap(); println!("File Validates"); process::exit(0);