argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional · Issue #59317 · python/cpython · GitHub
Skip to content

argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional #59317

Description

@waltermundt
BPO 15112
Nosy @cjerdonek, @vadmium
Files
  • argparse_fix_empty_nargs_star.patch: Proposed fix
  • 15112.patch
  • mixed.patch
  • 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 2012-06-20.04:15:47.146>
    labels = ['type-bug', 'library']
    title = "argparse: nargs='*' positional argument doesn't accept any items if preceded by an option and another positional"
    updated_at = <Date 2018-06-30.21:19:15.871>
    user = 'https://bugs.python.org/waltermundt'

    bugs.python.org fields:

    activity = <Date 2018-06-30.21:19:15.871>
    actor = 'paul.j3'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2012-06-20.04:15:47.146>
    creator = 'waltermundt'
    dependencies = []
    files = ['26097', '26485', '31457']
    hgrepos = []
    issue_num = 15112
    keywords = ['patch']
    message_count = 14.0
    messages = ['163249', '163497', '166173', '178481', '196066', '196112', '196434', '221999', '226315', '226316', '226320', '243453', '262842', '320808']
    nosy_count = 9.0
    nosy_names = ['bethard', 'gfxmonk', 'devurandom', 'chris.jerdonek', 'tshepang', 'martin.panter', 'paul.j3', 'waltermundt', 'leonard.gerard']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue15112'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3', 'Python 3.4']

    Linked PRs

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions