nmigen.cli: fix file type autodetection code.
authorwhitequark <whitequark@whitequark.org>
Thu, 11 Jun 2020 15:36:43 +0000 (15:36 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 13:45:51 +0000 (13:45 +0000)
nmigen/cli.py

index e6757a07fd5d708f6a803bcc5a4c035ab9cab13b..e530692ae19200e682e6ce631fb4492227eacb35 100644 (file)
@@ -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="?",