diff --git a/ebmlite/tools/xml2ebml.py b/ebmlite/tools/xml2ebml.py index c5f3fed..0c77f55 100644 --- a/ebmlite/tools/xml2ebml.py +++ b/ebmlite/tools/xml2ebml.py @@ -26,10 +26,15 @@ def main(): '-c', '--clobber', action="store_true", help="Clobber (overwrite) existing files.", ) + argparser.add_argument( + '-n', '--no_header', action="store_true", + help="Do not write the standard EBML header segment.", + ) args = argparser.parse_args() + header = not args.no_header # Removing some naming confusion, if no_header=false, header argument should be true with utils.load_files(args, binary_output=True) as (schema, out): - ebmlite.util.xml2ebml(args.input, out, schema) # , sizeLength=4, headers=True, unknown=True) + ebmlite.util.xml2ebml(args.input, out, schema, headers=header) # , sizeLength=4, headers=True, unknown=True) if __name__ == "__main__":