diff options
author | Fergal Hainey <fergal.hainey@skyscanner.net> | 2018-07-21 14:22:13 +0100 |
---|---|---|
committer | Ashley Whetter <ashley@awhetter.co.uk> | 2019-02-09 13:40:54 -0800 |
commit | 9276e44839c2a03563b85cad3bad29dd950a8331 (patch) | |
tree | 4ac01a219d37b41e37f684ae1cbef11f36fa484a | |
parent | 998efd9addd4edd1a57193c7eb96b46fc8f39468 (diff) | |
download | pylint-git-9276e44839c2a03563b85cad3bad29dd950a8331.tar.gz |
Fix --list-msgs
-rw-r--r-- | pylint/lint.py | 4 | ||||
-rw-r--r-- | pylint/test/test_self.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pylint/lint.py b/pylint/lint.py index 5881fbe83..390efa2d2 100644 --- a/pylint/lint.py +++ b/pylint/lint.py @@ -1110,10 +1110,10 @@ class CLIRunner(Runner): ( "list-msgs", { - "metavar": "<msg-id>", "group": "Commands", "level": 1, - "default": None, + "action": "store_true", + "default": False, "help": "Generate pylint's messages.", }, ), diff --git a/pylint/test/test_self.py b/pylint/test/test_self.py index e5549f349..945fdf7db 100644 --- a/pylint/test/test_self.py +++ b/pylint/test/test_self.py @@ -161,6 +161,9 @@ class TestRunTC(object): ["--exit-zero", join(HERE, "regrtest_data", "syntax_error.py")], code=0 ) + def test_list_msgs(self): + self._runtest(["--list-msgs"], code=0) + def test_generate_config_option(self): self._runtest(["--generate-rcfile"], code=0) |