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
3144adbd05
commit
d9c9874788
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user