thermalcam_decoder/examples/main.rs

12 lines
268 B
Rust
Raw Normal View History

use thermaldecoder::decode_to_files;
use std::env;
fn main() -> anyhow::Result<()> {
let mut arg = env::args();
arg.next(); // skip executable
let filename = arg.next().ok_or(anyhow::anyhow!("unexpected"))?;
decode_to_files(&filename)?;
Ok(())
}