add simple cli binary

This commit is contained in:
Kaspar Schleiser 2023-05-31 13:59:09 +02:00 committed by ISibboI
parent db95723f8e
commit 8b08d2081b

7
src/bin/evalexpr.rs Normal file
View File

@ -0,0 +1,7 @@
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
let args = std::env::args().skip(1).collect::<Vec<String>>().join(" ");
println!("{}", evalexpr::eval(&args)?);
Ok(())
}