Skip to content

Commit aaeeb33

Browse files
committed
Only exit after argparse parsing is done
1 parent efca390 commit aaeeb33

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

pylint/config/config_initialization.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,6 @@ def _config_initialization(
7676
exc.code = 32
7777
raise
7878

79-
# args_list should now only be a list of files/directories to lint. All options have
80-
# been removed from the list
81-
if not parsed_args_list:
82-
print(linter.help())
83-
sys.exit(32)
84-
8579
# We have loaded configuration from config file and command line. Now, we can
8680
# load plugin specific configuration.
8781
linter.load_plugin_configuration()
@@ -103,4 +97,10 @@ def _config_initialization(
10397
# Now that plugins are loaded, get list of all fail_on messages, and enable them
10498
linter.enable_fail_on_messages()
10599

100+
# args_list should now only be a list of files/directories to lint. All options have
101+
# been removed from the list
102+
if not parsed_args_list:
103+
print(linter.help())
104+
sys.exit(32)
105+
106106
return parsed_args_list

0 commit comments

Comments
 (0)