summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2018-06-12 10:34:09 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2018-06-12 09:50:37 +0200
commit740906eeacc75049f1f85a955f5f23173db8b36f (patch)
tree7082f33a4a19620194d4a9d015d6728631a0928e
parent1347e2a966b2afb99acc812becf3d6f7503eea8c (diff)
downloadpylint-git-740906eeacc75049f1f85a955f5f23173db8b36f.tar.gz
Document jobs=0 behavior in help message and man page
-rw-r--r--man/pylint.12
-rw-r--r--pylint/lint.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/man/pylint.1 b/man/pylint.1
index 6f644efef..9341ed435 100644
--- a/man/pylint.1
+++ b/man/pylint.1
@@ -53,7 +53,7 @@ Pickle collected data for later comparisons. [current: yes]
.IP "--load-plugins=<modules>"
List of plugins (as comma separated values of python modules names) to load, usually to register additional checkers. [current: none]
.IP "--jobs=<n-processes>, -j <n-processes>"
-Use multiple processes to speed up Pylint. [current: 1]
+Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the number of processors available to use. [current: 1]
.IP "--extension-pkg-whitelist=<pkg[,pkg]>"
A comma-separated list of package or module names from where C extensions may be loaded. Extensions are loading into the active Python interpreter and may run arbitrary code [current: none]
diff --git a/pylint/lint.py b/pylint/lint.py
index 893357570..f4efe4e84 100644
--- a/pylint/lint.py
+++ b/pylint/lint.py
@@ -398,7 +398,8 @@ class PyLinter(config.OptionsManagerMixIn,
{'type' : 'int', 'metavar': '<n-processes>',
'short': 'j',
'default': 1,
- 'help' : '''Use multiple processes to speed up Pylint.''',
+ 'help' : 'Use multiple processes to speed up Pylint. Specifying 0 will '
+ 'auto-detect the number of processors available to use.',
}),
('unsafe-load-any-extension',