projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a831ce
)
cli: add missing default for `generate`
author
Alain Péteut
<alain.peteut@yahoo.com>
Thu, 17 Jan 2019 20:32:47 +0000
(21:32 +0100)
committer
whitequark
<whitequark@whitequark.org>
Thu, 17 Jan 2019 20:45:07 +0000
(20:45 +0000)
nmigen/cli.py
patch
|
blob
|
history
diff --git
a/nmigen/cli.py
b/nmigen/cli.py
index 0867495d0bc710ee907cd16b83d3698e916956ee..98843f232b4c944b2d098da97eb065817d3344fe 100644
(file)
--- 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="?",