public function getOptionParser()
    {
        $parser = new ConsoleOptionParser('console');
        $parser->setDescription('Validate modules configuration');
        $parser->addArgument('modules', [
            'help' => 'Comma-separated list of modules to validate.  All will be checked if omitted.',
        ]);
        $parser->addOption('no-warnings', [
            'short' => 'n',
            'help' => 'Skip warnings (display only errors)',
            'default' => false,
            'boolean' => true,
        ]);

        return $parser;
    }