summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-03-12 15:23:20 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-03-12 15:23:20 +0200
commitdb4bd177da1a549359f97f708975a797a613cfae (patch)
tree6f51d88deb293ddc0979163f6fa059111463edd0
parentdd226add938452d45a8950e21341995d0642293b (diff)
downloadpylint-db4bd177da1a549359f97f708975a797a613cfae.tar.gz
Document what include-ids and --symbols did in the past and point to msg-template instead. Closes issue #215.
-rw-r--r--pylint/lint.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/pylint/lint.py b/pylint/lint.py
index 0c466a1..eb8f706 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -60,6 +60,10 @@ from pylint.__pkginfo__ import version
MANAGER = astroid.MANAGER
+INCLUDE_IDS_HELP = ("Deprecated. It was used to include message\'s "
+ "id in output. Use --msg-template instead.")
+SYMBOLS_HELP = ("Deprecated. It was used to include symbolic ids of "
+ "messages in output. Use --msg-template instead.")
def _get_new_args(message):
location = (
@@ -195,10 +199,10 @@ MSGS = {
}
-def _deprecated_option(shortname, opt_type):
+def _deprecated_option(shortname, opt_type, help_msg):
def _warn_deprecated(option, optname, *args): # pylint: disable=unused-argument
sys.stderr.write('Warning: option %s is deprecated and ignored.\n' % (optname,))
- return {'short': shortname, 'help': 'DEPRECATED', 'hide': True,
+ return {'short': shortname, 'help': help_msg, 'hide': True,
'type': opt_type, 'action': 'callback', 'callback': _warn_deprecated}
@@ -378,8 +382,9 @@ class PyLinter(configuration.OptionsManagerMixIn,
'See doc for all details')
}),
- ('include-ids', _deprecated_option('i', 'yn')),
- ('symbols', _deprecated_option('s', 'yn')),
+ ('include-ids', _deprecated_option('i', 'yn',
+ INCLUDE_IDS_HELP)),
+ ('symbols', _deprecated_option('s', 'yn', SYMBOLS_HELP)),
('jobs',
{'type' : 'int', 'metavar': '<n-processes>',