mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
integration/builder: Use custom Formatter settings to improve readibility and minor cleanups.
This commit is contained in:
parent
1279ebebe8
commit
153f9e9f6c
2 changed files with 3 additions and 3 deletions
|
@ -343,9 +343,9 @@ class Builder:
|
|||
# Builder Arguments --------------------------------------------------------------------------------
|
||||
|
||||
def builder_args(parser):
|
||||
parser.formatter_class = argparse.ArgumentDefaultsHelpFormatter
|
||||
parser.formatter_class = lambda prog: argparse.ArgumentDefaultsHelpFormatter(prog, max_help_position=10, width=120)
|
||||
builder_group = parser.add_argument_group("builder")
|
||||
builder_group.add_argument("--output-dir", default=None, help="Base Output directory (customizable with --{gateware,software,include,generated}-dir).")
|
||||
builder_group.add_argument("--output-dir", default=None, help="Base Output directory.")
|
||||
builder_group.add_argument("--gateware-dir", default=None, help="Output directory for Gateware files.")
|
||||
builder_group.add_argument("--software-dir", default=None, help="Output directory for Software files.")
|
||||
builder_group.add_argument("--include-dir", default=None, help="Output directory for Header files.")
|
||||
|
|
|
@ -390,7 +390,7 @@ def sim_args(parser):
|
|||
parser.add_argument("--non-interactive", action="store_true", help="Run simulation without user input.")
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Generic LiteX SoC Simulation")
|
||||
parser = argparse.ArgumentParser(description="LiteX SoC Simulation utility")
|
||||
sim_args(parser)
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
Loading…
Reference in a new issue