tidy up bitsy-validate
This commit is contained in:
@@ -5,7 +5,7 @@ use std::{env, fs};
|
||||
const SYNTAX_ERROR: &str = "No input path specified. Usage: `bitsy-validate filepath`";
|
||||
|
||||
fn main() {
|
||||
let input_file = env::args().nth(1).expect(SYNTAX_ERROR);
|
||||
Game::from(fs::read_to_string(input_file).unwrap()).unwrap();
|
||||
let input = env::args().nth(1).expect(SYNTAX_ERROR);
|
||||
Game::from(fs::read_to_string(input).unwrap()).unwrap();
|
||||
println!("OK!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user