Skip to content

ArgumentParser.add_subparsers() argument spec discrepancies #92812

Closed
@MatthiasHeinz

Description

@MatthiasHeinz

Documentation

The function-signature currently reads ArgumentParser.add_subparsers([title][, description][, prog][, parser_class][, action][, option_string][, dest][, required][, help][, metavar]), but when trying to use the parameter option_string, the error-message suggests, that this parameter does not exist. On the other hand, the code does suggest a parameter called option_strings (with an additional 's' at the end).

Please update the docs accordingly.

Link to the docs
Link to the code

Might be related to #92811

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