diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-19 14:06:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 14:06:33 +0200 |
commit | a5c8e23904e417ccf24c8f7feb5531e6f6a6251a (patch) | |
tree | 89058ea87212f06a8872eac62b3d715d0d270905 /pylint/config/callback_actions.py | |
parent | 36e12384a71dc6771e40cfc996451346de573b27 (diff) | |
download | pylint-git-a5c8e23904e417ccf24c8f7feb5531e6f6a6251a.tar.gz |
Accept a comma-separated list of messages IDs in ``--help-msg`` (#7490)
Diffstat (limited to 'pylint/config/callback_actions.py')
-rw-r--r-- | pylint/config/callback_actions.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pylint/config/callback_actions.py b/pylint/config/callback_actions.py index e2a6017e9..a4c633464 100644 --- a/pylint/config/callback_actions.py +++ b/pylint/config/callback_actions.py @@ -158,7 +158,11 @@ class _MessageHelpAction(_CallbackAction): option_string: str | None = "--help-msg", ) -> None: assert isinstance(values, (list, tuple)) - self.run.linter.msgs_store.help_message(values) + values_to_print: list[str] = [] + for msg in values: + assert isinstance(msg, str) + values_to_print += utils._check_csv(msg) + self.run.linter.msgs_store.help_message(values_to_print) sys.exit(0) |