Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argparse missing documentation for error() method #53358

Closed
mark-summerfield mannequin opened this issue Jun 29, 2010 · 3 comments
Closed

argparse missing documentation for error() method #53358

mark-summerfield mannequin opened this issue Jun 29, 2010 · 3 comments
Labels
docs Documentation in the Doc dir

Comments

@mark-summerfield
Copy link
Mannequin

mark-summerfield mannequin commented Jun 29, 2010

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']

    @mark-summerfield
    Copy link
    Mannequin Author

    mark-summerfield mannequin commented Jun 29, 2010

    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.

    @mark-summerfield mark-summerfield mannequin added the docs Documentation in the Doc dir label Jun 29, 2010
    @sandrotosi
    Copy link
    Contributor

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

    Regards,
    Sandro

    @birkenfeld
    Copy link
    Member

    Committed after review in r85622. Thanks!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants