diff options
author | Ashley Whetter <ashley@awhetter.co.uk> | 2019-02-09 17:21:39 -0800 |
---|---|---|
committer | Ashley Whetter <ashley@awhetter.co.uk> | 2019-02-09 17:22:41 -0800 |
commit | eda4dcc365c152f0fb4035639b51d20c7a158a5f (patch) | |
tree | a4f40231a68b2659fe2e084bed973953751d0c2a | |
parent | 6d77b04c555cd24b3c7c7cbb28fae9be13b8441d (diff) | |
download | pylint-git-per_dir_config.tar.gz |
Fixed --list-msgsper_dir_config
-rw-r--r-- | pylint/config.py | 11 | ||||
-rw-r--r-- | pylint/lint.py | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/pylint/config.py b/pylint/config.py index f718bfe98..ca783490e 100644 --- a/pylint/config.py +++ b/pylint/config.py @@ -435,7 +435,16 @@ class CLIParser(ConfigParser): else: args.append("--{0}".format(option)) - copy_keys = ("action", "default", "dest", "help", "metavar", "level", "version") + copy_keys = ( + "action", + "default", + "dest", + "help", + "metavar", + "level", + "version", + "nargs", + ) kwargs = {k: definition[k] for k in copy_keys if k in definition} if "type" in definition: diff --git a/pylint/lint.py b/pylint/lint.py index bf7ce7e09..f9097abca 100644 --- a/pylint/lint.py +++ b/pylint/lint.py @@ -1363,6 +1363,9 @@ group are mutually exclusive.", self._plugin_registry.msgs_store.help_message(msg) sys.exit(0) + if not self._global_config.module_or_package: + sys.exit(0) + self.load_default_plugins() self._plugin_registry.disable("I") |