zhed-packlist-reset.rs
use std::io::Read;
use zhed_packlist::prelude::*;
// USAGE: zhed-packlist-reset < pl.old > pl.new
fn main() {
let mut inp = String::new();
std::io::stdin()
.lock()
.read_to_string(&mut inp)
.expect("unable to read packlist from stdin");
let mut pl: zhed_packlist::PackList = inp.parse().expect("unable to parse packlist");
pl.reset_markers();
print!("{}", pl);
}