1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! pngtools main use pyo3::PyResult; use std::process::exit; fn main() { let res_python: PyResult<i32> = pngtools::run_cli(); match res_python { Ok(code) => exit(code), Err(e) => { eprintln!("Error: {}", e); exit(1); } } }