14.3.5 Extending optparse
Since the two major controlling factors in how optparse interprets command-line options are the action and type of each option, the most likely direction of extension is to add new actions and new types.
See About this document... for information on suggesting changes.