From 177e80b966da03e83df410c23ebf13643ec88c33 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 11 Jun 2020 15:36:43 +0000 Subject: [PATCH] nmigen.cli: fix file type autodetection code. --- nmigen/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmigen/cli.py b/nmigen/cli.py index e6757a0..e530692 100644 --- a/nmigen/cli.py +++ b/nmigen/cli.py @@ -17,7 +17,7 @@ def main_parser(parser=None): help="generate RTLIL or Verilog from the design") p_generate.add_argument("-t", "--type", dest="generate_type", metavar="LANGUAGE", choices=["il", "v"], - default="v", + default=None, help="generate LANGUAGE (il for RTLIL, v for Verilog; default: %(default)s)") p_generate.add_argument("generate_file", metavar="FILE", type=argparse.FileType("w"), nargs="?", -- 2.30.2