diff --git a/crates/unitdc-cli/Cargo.toml b/crates/unitdc-cli/Cargo.toml index 8a4eae2..d8f0f59 100644 --- a/crates/unitdc-cli/Cargo.toml +++ b/crates/unitdc-cli/Cargo.toml @@ -6,4 +6,5 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +env_logger = "0.10.0" unitdc = { path = "../../" } diff --git a/crates/unitdc-cli/src/main.rs b/crates/unitdc-cli/src/main.rs index 7434e70..5081116 100644 --- a/crates/unitdc-cli/src/main.rs +++ b/crates/unitdc-cli/src/main.rs @@ -1,6 +1,7 @@ use unitdc::interpreter::{Interpreter, Output}; fn main() { + env_logger::init(); let mut interpreter = Interpreter::new(Box::new(|output| match output { Output::Message(e) => eprintln!("message: {}", e), Output::Quantity(q) => println!("[0]: {}", q),