mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
FEATURE: Turn on validate_mode for the validate subcommand only.
This commit is contained in:
parent
2d71145813
commit
5f0812b975
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user