def add_options(cls, parser):
        """Add options to flake8.

        :param parser: optparse.OptionParser from pycodestyle.
        """
        parser.add_option('--show-pydocstyle', action='store_true', help='show explanation of each PEP 257 error')
        parser.config_options.append('show-pydocstyle')
def add_options ( cls , parser ) : parser . add_option ( '--show-pydocstyle' , action = 'store_true' , help = 'show explanation of each PEP 257 error' ) parser . config_options . append ( 'show-pydocstyle' )
Add options to flake8.

        :param parser: optparse.OptionParser from pycodestyle.