Add support for options with optional arguments in the :mod:`getopt` module.