Skip to content

Commit c127388

Browse files
JordanYatesjhedberg
authored andcommitted
scripts: build: mergehex: fix --output-bin
Stop `--output-bin` from consuming the first trailing argument that should have been in `input_files`. Signed-off-by: Jordan Yates <jordan@embeint.com>
1 parent 3f90574 commit c127388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/mergehex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def parse_args():
4242
parser.add_argument("--overlap", default="error",
4343
help="What to do when files overlap (error, ignore, replace). "
4444
"See IntelHex.merge() for more info.")
45-
parser.add_argument("--output-bin", default=False,
45+
parser.add_argument("--output-bin", action='store_true',
4646
help="Save the merged content as binary file.")
4747
parser.add_argument("input_files", nargs='*')
4848
return parser.parse_args()

0 commit comments

Comments
 (0)