better warnings
This commit is contained in:
parent
f8aa13a72e
commit
37becc2975
|
@ -16,9 +16,9 @@ use bitsy_parser::image::Image;
|
||||||
/// replaces the player avatar with a smiley face.
|
/// replaces the player avatar with a smiley face.
|
||||||
fn main() {
|
fn main() {
|
||||||
let input_file = env::args().nth(1)
|
let input_file = env::args().nth(1)
|
||||||
.expect("No game data specified. Usage: `smiley infile outfile`");
|
.expect("No input path specified. Usage: `smiley infile outfile`");
|
||||||
let output_file = env::args().nth(2)
|
let output_file = env::args().nth(2)
|
||||||
.expect("No game data specified. Usage: `smiley infile outfile`");
|
.expect("No output path specified. Usage: `smiley infile outfile`");
|
||||||
|
|
||||||
let mut game = Game::from(fs::read_to_string(input_file).unwrap());
|
let mut game = Game::from(fs::read_to_string(input_file).unwrap());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue