Skip to content

argparse missing documentation for error() method #53358

Closed

Description

@mark-summerfield
BPO 9112
Nosy @birkenfeld, @mark-summerfield, @sandrotosi
Files
  • issue9112-py3k.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 2010-10-17.10:28:15.423>
    created_at = <Date 2010-06-29.08:06:48.871>
    labels = ['docs']
    title = 'argparse missing documentation for error() method'
    updated_at = <Date 2010-10-17.10:28:15.421>
    user = 'https://github.com/mark-summerfield'

    bugs.python.org fields:

    activity = <Date 2010-10-17.10:28:15.421>
    actor = 'georg.brandl'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2010-10-17.10:28:15.423>
    closer = 'georg.brandl'
    components = ['Documentation']
    creation = <Date 2010-06-29.08:06:48.871>
    creator = 'mark'
    dependencies = []
    files = ['19070']
    hgrepos = []
    issue_num = 9112
    keywords = ['patch']
    message_count = 3.0
    messages = ['108896', '117758', '118926']
    nosy_count = 5.0
    nosy_names = ['georg.brandl', 'bethard', 'mark', 'sandro.tosi', 'docs@python']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue9112'
    versions = ['Python 2.7', 'Python 3.2']

    Activity

    1. mark-summerfield commented on Jun 29, 2010

      mark-summerfieldmannequin
      MannequinAuthor

      The argparse module's ArgumentParser class has an error() method that appears to have the same behavior as the optparse error() method, but this method is not mentioned in the documentation.

    2. sandrotosi commented on Sep 30, 2010

      @sandrotosi
      Contributor

      Hello,
      attached a patch that adds the exiting methods (exit() and error()) to argparse documentation.

      Regards,
      Sandro

    3. birkenfeld commented on Oct 17, 2010

      @birkenfeld
      Member

      Committed after review in r85622. Thanks!

    4. transferred this issue fromon Apr 10, 2022
    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

      docsDocumentation in the Doc dir

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions