fn write_or_print(out: &str, ofile: Option<&Path>)