pub fn writer_to_stdout_or_file<'a>( stdout: &'a Stdout, stdout_flag: bool, file_path: Option<String>, ) -> Result<Box<dyn Write + 'a>>