Skip to content

argparse: add_argument(... nargs='+', metavar=<tuple>) does not work with positional arguments #86713

@m-khvoinitsky

Description

@m-khvoinitsky
BPO 42547
Nosy @rhettinger, @iritkatriel, @m-khvoinitsky
PRs
  • bpo-42547: fix add_argument(metavar=<tuple>, nargs='+') for positional arguments #23617
  • 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 2020-12-02.21:15:50.599>
    labels = ['type-bug', 'library', '3.10']
    title = "argparse: add_argument(... nargs='+', metavar=<tuple>) does not work with positional arguments"
    updated_at = <Date 2021-09-07.19:41:21.754>
    user = 'https://github.com/m-khvoinitsky'

    bugs.python.org fields:

    activity = <Date 2021-09-07.19:41:21.754>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-12-02.21:15:50.599>
    creator = 'm_khvoinitsky'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42547
    keywords = ['patch']
    message_count = 4.0
    messages = ['382341', '382368', '382369', '401340']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'paul.j3', 'iritkatriel', 'm_khvoinitsky']
    pr_nums = ['23617']
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42547'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      Status

      Doc issues

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions