From: Alain Péteut Date: Thu, 17 Jan 2019 20:32:47 +0000 (+0100) Subject: cli: add missing default for `generate` X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5db7e21c5f0eca047ed3aa35c1e161b4285a19b3;p=nmigen.git cli: add missing default for `generate` --- diff --git a/nmigen/cli.py b/nmigen/cli.py index 0867495..98843f2 100644 --- a/nmigen/cli.py +++ b/nmigen/cli.py @@ -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="?",