diff options
Diffstat (limited to 'pylint/config.py')
-rw-r--r-- | pylint/config.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pylint/config.py b/pylint/config.py index c9ab351..fb5c2da 100644 --- a/pylint/config.py +++ b/pylint/config.py @@ -316,6 +316,12 @@ class OptionParser(optparse.OptionParser): # Drop the last "\n", or the header if no options or option groups: return "".join(result[:-1]) + def _match_long_opt(self, opt): + """Disable abbreviations.""" + if opt not in self._long_opt: + raise optparse.BadOptionError(opt) + return opt + # pylint: disable=abstract-method; by design? class _ManHelpFormatter(optparse.HelpFormatter): |