6.21.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 6.21.3, Reference Guide and section 6.21.4, Option Callbacks.

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