diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-03-12 15:23:20 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-03-12 15:23:20 +0200 |
commit | ae6fec54792ce2644064aa854136f3f15480e485 (patch) | |
tree | 47ed072657361d245889677cf3c9e198d4b46bed | |
parent | 7a0d9ae1e501a2bd8428ca59219d44d9a6ca283c (diff) | |
download | pylint-git-ae6fec54792ce2644064aa854136f3f15480e485.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.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pylint/lint.py b/pylint/lint.py index 0c466a1f1..eb8f70697 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>', |