From b0a588f373c1f789d3737d3ef6cc6f6a7502d93e Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 23 May 2021 01:16:54 +0800 Subject: [PATCH] chore: comments --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 520ceb0..3399308 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,9 +13,11 @@ fn main() { let matches = args::get_args_matches(); let parsed_args = args::parse_args(matches); + // read plist file let plist_value = Value::from_file(&parsed_args.in_file).unwrap_or_else(|e| { failure_and_exit!("Read plist file: {}, failed: {}", parsed_args.in_file, e); }); + // write plist to file or stdout if let Some(out_file) = parsed_args.out_file { if File::open(&out_file).is_ok() { failure_and_exit!("Output file exits: {}", out_file);