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