Skip to content

argparse: bad nargs value raises misleading message #61174

Description

@cjerdonek
BPO 16970
Nosy @gvanrossum, @cjerdonek, @miss-islington, @tmblweed, @Bonifacio2
PRs
  • bpo-16970: Adding error message for invalid args #14844
  • [3.8] bpo-16970: Adding error message for invalid args (GH-14844) #15074
  • Files
  • argparse.patch
  • argparse-v2.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 = <Date 2021-06-05.14:55:12.513>
    created_at = <Date 2013-01-15.12:09:51.112>
    labels = ['easy', 'type-bug', '3.8', '3.9', '3.7', 'library']
    title = 'argparse: bad nargs value raises misleading message'
    updated_at = <Date 2021-06-05.14:55:12.512>
    user = 'https://github.com/cjerdonek'

    bugs.python.org fields:

    activity = <Date 2021-06-05.14:55:12.512>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-05.14:55:12.513>
    closer = 'gvanrossum'
    components = ['Library (Lib)']
    creation = <Date 2013-01-15.12:09:51.112>
    creator = 'chris.jerdonek'
    dependencies = []
    files = ['28759', '28767']
    hgrepos = []
    issue_num = 16970
    keywords = ['patch', 'easy']
    message_count = 14.0
    messages = ['180012', '180152', '180154', '180156', '180180', '180194', '187755', '187792', '348120', '348884', '348885', '348886', '395163', '395164']
    nosy_count = 8.0
    nosy_names = ['gvanrossum', 'bethard', 'chris.jerdonek', 'paul.j3', 'Robert', 'miss-islington', 'syadlapalli', 'Bonifacio2']
    pr_nums = ['14844', '15074']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16970'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifeeasystdlibStandard 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