script file has to be provided as the first arg

This commit is contained in:
Mark 2023-03-14 09:19:58 +01:00 committed by GitHub
parent d0cf7ab588
commit f43f5e518c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ fn main() {
.into();
assert!(val.fits_in(&case).is_empty());
let script = parse::parse::parse(&mut parse::file::File::new(
std::fs::read_to_string("/tmp/script.txt").unwrap(),
std::fs::(std::env::args().nth(1).unwrap()).unwrap(),
))
.unwrap();
println!(" - - - - -");