2023-04-07 22:03:36 +02:00
|
|
|
use spl::{find_in_splpath, start_file};
|
2023-02-17 22:47:45 +01:00
|
|
|
|
2023-02-25 11:37:07 +01:00
|
|
|
use std::env::args;
|
2023-02-17 20:00:39 +01:00
|
|
|
|
2023-02-25 11:37:07 +01:00
|
|
|
fn main() {
|
2023-04-07 22:03:36 +02:00
|
|
|
if let Err(x) = start_file(
|
|
|
|
&args()
|
|
|
|
.nth(1)
|
|
|
|
.unwrap_or_else(|| find_in_splpath("repl.spl").expect("no file to be run")),
|
|
|
|
) {
|
2023-02-25 11:37:07 +01:00
|
|
|
println!("{x:?}");
|
|
|
|
}
|
2023-02-17 20:00:39 +01:00
|
|
|
}
|