14.3.2.4 Other actions

Python 2.5

14.3.2.4 Other actions

Some other actions supported by optparse are:

store a constant value
append this option's argument to a list
increment a counter by one
call a specified function

These are covered in section 14.3.3, Reference Guide and section 14.3.4, Option Callbacks.

See About this document... for information on suggesting changes.