relog 1.0.13

Strong String Normalization
Documentation
/*

Copyright 2023 - Andrew Johnson

This code and all related intellectual property is available under the terms of
the attached permissive MIT license. This license is intended only to protect
the future development of the project while otherwise allowing people to use
the code and IP as they would like. Please, just be nice.

*/

use relog::relog;

pub fn main() {
   let mut recurse = false;
   for a in std::env::args().skip(1) {
      if a=="--recurse" {
         recurse = true;
      } else if a.ends_with(".rl") {
         let contents = std::fs::read_to_string(&a)
         .expect(&format!("no such file: {}", a));
         println!("{}", relog(recurse, &contents));
      } else {
         println!("{}", relog(recurse, &a));
      }
   }
}