qcalc 0.15.3

qcalc is a simple but effective terminal calculator for quick access and ease of use. It supports history of expressions, built-in functions and stored variables
Documentation
#![warn(
    clippy::perf,
    clippy::complexity,
    clippy::print_stderr,
    clippy::needless_lifetimes
)]

use std::error::Error;

use qcalc::eval;

fn main() -> Result<(), Box<dyn Error>> {
    let mut args = std::env::args();
    args.next();
    let inputs = args.collect::<Vec<_>>();
    if inputs.is_empty() {
        qcalc::tui()
    } else {
        for input in inputs.iter() {
            let res = eval(input)?;
            println!("{}", res);
        }
        Ok(())
    }
}