spl/src/main.rs

10 lines
233 B
Rust
Raw Normal View History

2023-03-28 02:54:16 +02:00
use spl::{start_file, find_in_splpath};
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-03-28 02:54:16 +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
}