chore: comments
This commit is contained in:
@@ -13,9 +13,11 @@ fn main() {
|
|||||||
let matches = args::get_args_matches();
|
let matches = args::get_args_matches();
|
||||||
let parsed_args = args::parse_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| {
|
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);
|
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 let Some(out_file) = parsed_args.out_file {
|
||||||
if File::open(&out_file).is_ok() {
|
if File::open(&out_file).is_ok() {
|
||||||
failure_and_exit!("Output file exits: {}", out_file);
|
failure_and_exit!("Output file exits: {}", out_file);
|
||||||
|
|||||||
Reference in New Issue
Block a user