2023-12-31 01:20:44 +02:00
|
|
|
use thermaldecoder::decode_to_files;
|
2023-12-31 00:19:24 +02:00
|
|
|
|
|
|
|
use std::env;
|
|
|
|
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
|
|
let mut arg = env::args();
|
2023-12-31 01:20:44 +02:00
|
|
|
arg.next(); // skip executable
|
2023-12-31 00:19:24 +02:00
|
|
|
let filename = arg.next().ok_or(anyhow::anyhow!("unexpected"))?;
|
2023-12-31 14:17:03 +02:00
|
|
|
decode_to_files(&filename)?;
|
2023-12-31 00:19:24 +02:00
|
|
|
Ok(())
|
|
|
|
}
|