Skip to content

argparse docs: default for prog= in ArgumentParser() should be basename of argv[0], not argv[0], to match behaviour #90386

@lf

Description

@lf
mannequin
BPO 46228
Nosy @rhettinger, @miss-islington, @lf-
PRs
  • bpo-46228: argparse docs: prog default is the basename of argv[0] #30298
  • [3.10] bpo-46228: argparse docs: prog default is the basename of argv[0] (GH-30298) #30339
  • Files
  • test.py: Test program from above
  • 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 2022-01-02.20:19:59.565>
    created_at = <Date 2022-01-02.19:50:38.724>
    labels = ['type-bug', '3.9', '3.10', '3.11', 'library', 'docs']
    title = 'argparse docs: default for prog= in ArgumentParser() should be basename of argv[0], not argv[0], to match behaviour'
    updated_at = <Date 2022-02-02.16:56:39.827>
    user = 'https://github.com/lf'

    bugs.python.org fields:

    activity = <Date 2022-02-02.16:56:39.827>
    actor = 'paul.j3'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2022-01-02.20:19:59.565>
    closer = 'rhettinger'
    components = ['Documentation', 'Library (Lib)']
    creation = <Date 2022-01-02.19:50:38.724>
    creator = 'lf-'
    dependencies = []
    files = ['50536']
    hgrepos = []
    issue_num = 46228
    keywords = ['patch']
    message_count = 2.0
    messages = ['409515', '409518']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'docs@python', 'paul.j3', 'miss-islington', 'lf-']
    pr_nums = ['30298', '30339']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46228'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifedocsDocumentation in the Doc dirstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions