Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork34.1k
Closed
Description
Bug report
Bug description:
As of 3.14, argparse--help accidentally includes the ansi-escapes when calculating the length of the invocations, resulting in excessive margins between options and their helptext. Effectively, the indentation will always be 24 (max_help_position).
importargparseargparse.ArgumentParser().print_help()
in 3.14, this produces:
options: -h, --help show this help message and exitin previous versions, it produces:
options: -h, --help show this help message and exitCPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Doc issues