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