Skip to content

argparse.BooleanOptionalAction should not add the default value to the help string by default #83137

Description

@anntzer
mannequin
BPO 38956
Nosy @rhettinger, @ambv, @mhils, @miss-islington, @shihai1991, @michiboo
PRs
  • bpo-38956: remove default option from help string in argparse #17447
  • bpo-38956: don't print BooleanOptionalAction's default twice #27672
  • [3.10] bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) #27787
  • [3.9] bpo-38956: don't print BooleanOptionalAction's default twice (GH-27672) #27788
  • 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 = <Date 2021-08-17.10:03:35.321>
    created_at = <Date 2019-12-02.23:03:24.687>
    labels = ['library', '3.9']
    title = 'argparse.BooleanOptionalAction should not add the default value to the help string by default'
    updated_at = <Date 2021-08-17.19:16:12.710>
    user = 'https://github.com/anntzer'

    bugs.python.org fields:

    activity = <Date 2021-08-17.19:16:12.710>
    actor = 'Antony.Lee'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-08-17.10:03:35.321>
    closer = 'lukasz.langa'
    components = ['Library (Lib)']
    creation = <Date 2019-12-02.23:03:24.687>
    creator = 'Antony.Lee'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38956
    keywords = ['patch']
    message_count = 7.0
    messages = ['357733', '357743', '357747', '399687', '399720', '399724', '399729']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'lukasz.langa', 'paul.j3', 'mhils', 'miss-islington', 'shihai1991', 'Micky Yun Chan']
    pr_nums = ['17447', '27672', '27787', '27788']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue38956'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions