From 153f9e9f6c083dd861c015086cdcc9fedc1b009f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 5 Jan 2022 19:22:58 +0100 Subject: [PATCH] integration/builder: Use custom Formatter settings to improve readibility and minor cleanups. --- litex/soc/integration/builder.py | 4 ++-- litex/tools/litex_sim.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index d1f32f2fe..cc1b5a440 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -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.") diff --git a/litex/tools/litex_sim.py b/litex/tools/litex_sim.py index 5ce63108a..7df1f4f78 100755 --- a/litex/tools/litex_sim.py +++ b/litex/tools/litex_sim.py @@ -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()