(cherry picked from commit
9a155138c58cad409e28e34359ba87ec0025b6b7)
While the documentation for `optparse` mentioned that both `store_const` and
`append_const` store a constant value, it was not clear where this value was
coming from.
A link to `Option.const` makes this explicit.
Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
Some other actions supported by :mod:`optparse` are:
``"store_const"``
- store a constant value
+ store a constant value, pre-set via :attr:`Option.const`
``"append"``
append this option's argument to a list
store this option's argument (default)
``"store_const"``
- store a constant value
+ store a constant value, pre-set via :attr:`Option.const`
``"store_true"``
store ``True``
append this option's argument to a list
``"append_const"``
- append a constant value to a list
+ append a constant value to a list, pre-set via :attr:`Option.const`
``"count"``
increment a counter by one