Skip to content

Argparse breaks when a switch is given an argument beginning with a dash #70384

@CharlesDaffern

Description

@CharlesDaffern
BPO 26196
Nosy @ericvsmith, @spaceone
Superseder
  • bpo-9334: argparse does not accept options taking arguments beginning with dash (regression from optparse)
  • 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 2016-01-25.17:14:25.677>
    created_at = <Date 2016-01-25.11:25:35.659>
    labels = ['type-bug', 'library']
    title = 'Argparse breaks when a switch is given an argument beginning with a dash'
    updated_at = <Date 2016-06-15.10:04:10.522>
    user = 'https://bugs.python.org/CharlesDaffern'

    bugs.python.org fields:

    activity = <Date 2016-06-15.10:04:10.522>
    actor = 'spaceone'
    assignee = 'none'
    closed = True
    closed_date = <Date 2016-01-25.17:14:25.677>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2016-01-25.11:25:35.659>
    creator = 'Charles Daffern'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 26196
    keywords = []
    message_count = 3.0
    messages = ['258897', '258898', '258910']
    nosy_count = 5.0
    nosy_names = ['bethard', 'eric.smith', 'SilentGhost', 'spaceone', 'Charles Daffern']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = '9334'
    type = 'behavior'
    url = 'https://bugs.python.org/issue26196'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions