diff options
-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) |