optparse: Process docstring and declarations correctly in defopthandler.