Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-12806: Add argparse FlexiHelpFormatter #22129

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

davesteele
Copy link
Contributor

@davesteele davesteele commented Sep 7, 2020

This adds the FlexiHelpFormatter class to argparse.

It supports wrapping text, while preserving paragraphs. Bullet lists are supported.

There are a number of differences, relative to the latest patch in the issue report:

  • single line feeds in a paragraph are allowed
  • the code is refactored to avoid duplication
  • test failure fixes (mostly whitespace)

Tests and documentation are included.

https://pypi.org/project/argparse-formatter/

https://bugs.python.org/issue12806

@davesteele davesteele changed the title bpo12806: Add argparse FlexiHelpFormatter bpo-12806: Add argparse FlexiHelpFormatter Sep 7, 2020
benjaminhwilliams added a commit to dials/dials_scratch that referenced this pull request Jun 23, 2021
Unfortunately, argparse's proposed FlexiHelpFormatter does not yet
exist, see python/cpython#22129.
Rebase to force CI retest.

The "addres sanitizer" test is failing with a timeout, on
test_multiprocessing_fork.WithProcessesTestQueue(). It is not likely
that this branch contributed to that failure.

https://github.com/python/cpython/pull/22129/checks?check_run_id=3033564406
Copy link

cpython-cla-bot bot commented Feb 27, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants