tools/generate-wire.py: add option to expose tlv_record_type

Next update adds TLV test vectors: without this, we get a warning
about them being unused.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-08-01 14:27:10 +09:30
committed by Christian Decker
parent 9b88fd4c60
commit b10e0e08bb
3 changed files with 11 additions and 1 deletions

View File

@@ -628,6 +628,7 @@ if __name__ == "__main__":
parser.add_argument("-P", "--print_wire", help="generate wire printing source files",
action="store_true", default=False)
parser.add_argument("--page", choices=['header', 'impl'], help="page to print")
parser.add_argument('--expose-tlv-type', action='append', default=[])
parser.add_argument('header_filename', help='The filename of the header')
parser.add_argument('enum_name', help='The name of the enum to produce')
parser.add_argument("files", help='Files to read in (or stdin)', nargs=REMAINDER)