14.3.2.4 Other actions

Some other actions supported by optparse are:

store_const
store a constant value
append
append this option's argument to a list
count
increment a counter by one
callback
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.