integration/builder: Use custom Formatter settings to improve readibility and minor cleanups.

This commit is contained in:
Florent Kermarrec 2022-01-05 19:22:58 +01:00
parent 1279ebebe8
commit 153f9e9f6c
2 changed files with 3 additions and 3 deletions

View file

@ -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.")

View file

@ -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()