Skip to content

Commit

Permalink
cpsw_yaml_merge_main.cc: fixed -Y option
Browse files Browse the repository at this point in the history
Only set filename from non-option args if not already set.
  • Loading branch information
till-s committed Jun 28, 2019
1 parent a91d3f0 commit afcf2d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE_NOTES
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
yaml_cpsw_merge (program): fixed -Y option

R4.1.0:
Use python 3.6.1 by default.

Expand Down
4 changes: 3 additions & 1 deletion src/cpsw_yaml_merge_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ const char *fn = 0;
usage( argv[0] );
return 1;
} else {
fn = argv[optind];
if ( ! fn ) {
fn = argv[optind];
}
}

YAML::Node root = YAML::LoadFile( fn );
Expand Down

0 comments on commit afcf2d8

Please sign in to comment.