12 lines
288 B
Rust
12 lines
288 B
Rust
|
use thermaldecoder::decode_raw;
|
||
|
|
||
|
use std::env;
|
||
|
|
||
|
fn main() -> anyhow::Result<()> {
|
||
|
let mut arg = env::args();
|
||
|
let filename = arg.next().ok_or(anyhow::anyhow!("unexpected"))?;
|
||
|
let frames = arg.next().unwrap_or("frames".into());
|
||
|
decode_raw(&filename, &frames)?;
|
||
|
Ok(())
|
||
|
}
|