Change formatting of command help strings in source code

The automatic textwrap.dedent makes it impossible to cleanly extract
parts of the help strings into separate constants.
This commit is contained in:
dgelessus 2019-12-10 15:58:20 +01:00
parent a4b6328782
commit 97d2dbe1b3

View File

@ -483,7 +483,7 @@ def make_argument_parser(*, description: str, **kwargs: typing.Any) -> argparse.
ap = argparse.ArgumentParser( ap = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter, formatter_class=argparse.RawDescriptionHelpFormatter,
description=textwrap.dedent(description), description=description,
allow_abbrev=False, allow_abbrev=False,
add_help=False, add_help=False,
**kwargs, **kwargs,