From: whitequark Date: Thu, 11 Jun 2020 15:36:43 +0000 (+0000) Subject: nmigen.cli: fix file type autodetection code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=177e80b966da03e83df410c23ebf13643ec88c33;p=nmigen.git nmigen.cli: fix file type autodetection code. --- 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="?",