Skip to content

Commit 0c31e00

Browse files
committed
Clearing up naming. Tested with and without new option
1 parent b87efb9 commit 0c31e00

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ebmlite/tools/xml2ebml.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ def main():
2727
help="Clobber (overwrite) existing files.",
2828
)
2929
argparser.add_argument(
30-
'-n', '--no_header', action="store_false",
30+
'-n', '--no_header', action="store_true",
3131
help="Do not write the standard EBML header segment.",
3232
)
3333
args = argparser.parse_args()
3434

35+
header = not args.no_header # Removing some naming confusion, if no_header=false, header argument should be true
3536
with utils.load_files(args, binary_output=True) as (schema, out):
36-
ebmlite.util.xml2ebml(args.input, out, schema, headers=args.no_header) # , sizeLength=4, headers=True, unknown=True)
37+
ebmlite.util.xml2ebml(args.input, out, schema, headers=header) # , sizeLength=4, headers=True, unknown=True)
3738

3839

3940
if __name__ == "__main__":

0 commit comments

Comments
 (0)