cli: add missing default for `generate`
authorAlain Péteut <alain.peteut@yahoo.com>
Thu, 17 Jan 2019 20:32:47 +0000 (21:32 +0100)
committerwhitequark <cz@m-labs.hk>
Thu, 17 Jan 2019 20:45:07 +0000 (20:45 +0000)
nmigen/cli.py

index 0867495d0bc710ee907cd16b83d3698e916956ee..98843f232b4c944b2d098da97eb065817d3344fe 100644 (file)
@@ -16,6 +16,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",
         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="?",