Skip to content

argparse incorrectly shows help string on a new line in case of long command string #87041

@DiPaolo

Description

@DiPaolo
mannequin
BPO 42875
Nosy @rhettinger, @DiPaolo
PRs
  • bpo-42875: fix incorrect indent of long sub-commands #24177
  • Files
  • argparse-indent-sample.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2021-01-09.14:34:59.534>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'argparse incorrectly shows help string on a new line in case of long command string'
    updated_at = <Date 2021-01-22.19:25:32.221>
    user = 'https://github.com/DiPaolo'

    bugs.python.org fields:

    activity = <Date 2021-01-22.19:25:32.221>
    actor = 'paul.j3'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-01-09.14:34:59.534>
    creator = 'DiPaolo'
    dependencies = []
    files = ['49730']
    hgrepos = []
    issue_num = 42875
    keywords = ['patch']
    message_count = 2.0
    messages = ['384728', '385508']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'paul.j3', 'DiPaolo']
    pr_nums = ['24177']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42875'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Linked PRs

    Metadata

    Metadata

    Labels

    3.12only security fixes3.13bugs and security fixes3.14bugs and security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Doc issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions