Skip to content

Wrong output example on invalid options documentation #130750

@TheDSCPL

Description

@TheDSCPL

In the current documentation on the error message when invalid args are passed states that the available choices are single-quoted, but they actually aren't, both according to argparse's code and its tests (here and here).

Also, the optparse (test) error message does include single quotes. They should probably both have the same error format.

I am reporting this following a PR I made to fix a failing test in the deal library: life4/deal#138

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    No status

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions