Skip to content

[argparse] Using parse_known_args, unknown arg with space in value is interpreted as first positional arg #67098

@TabAtkins

Description

@TabAtkins
mannequin
BPO 22909
Superseder
  • bpo-22433: Argparse considers unknown optional arguments with spaces as a known positional argument
  • 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 2014-11-30.02:48:24.710>
    created_at = <Date 2014-11-20.21:28:58.901>
    labels = ['type-bug', 'library']
    title = '[argparse] Using parse_known_args, unknown arg with space in value is interpreted as first positional arg'
    updated_at = <Date 2014-11-30.02:48:24.709>
    user = 'https://bugs.python.org/TabAtkins'

    bugs.python.org fields:

    activity = <Date 2014-11-30.02:48:24.709>
    actor = 'berker.peksag'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-11-30.02:48:24.710>
    closer = 'berker.peksag'
    components = ['Library (Lib)']
    creation = <Date 2014-11-20.21:28:58.901>
    creator = 'TabAtkins'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 22909
    keywords = []
    message_count = 3.0
    messages = ['231448', '231877', '231879']
    nosy_count = 2.0
    nosy_names = ['paul.j3', 'TabAtkins']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '22433'
    type = 'behavior'
    url = 'https://bugs.python.org/issue22909'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard 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