Skip to content

bpo-12806: Add argparse FlexiHelpFormatter #22129

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

Open
wants to merge 6 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
@davesteele davesteele force-pushed the bpo12806-flexihelpformatter branch 2 times, most recently from d82ce68 to da19cdd Compare April 9, 2021 17:04
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.
@davesteele davesteele force-pushed the bpo12806-flexihelpformatter branch from 96c0799 to 008764b Compare July 25, 2021 15:29
@ghost
Copy link

ghost commented Feb 27, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@python-cla-bot
Copy link

python-cla-bot bot commented Apr 18, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

davesteele and others added 6 commits April 27, 2025 13:47
@davesteele davesteele force-pushed the bpo12806-flexihelpformatter branch from a3ac677 to a21117a Compare April 27, 2025 17:49
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.

4 participants