mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
Only exit after `argparse
` parsing is done
This commit is contained in:
parent
efca390ba0
commit
aaeeb339be
|
@ -76,12 +76,6 @@ def _config_initialization(
|
|||
exc.code = 32
|
||||
raise
|
||||
|
||||
# args_list should now only be a list of files/directories to lint. All options have
|
||||
# been removed from the list
|
||||
if not parsed_args_list:
|
||||
print(linter.help())
|
||||
sys.exit(32)
|
||||
|
||||
# We have loaded configuration from config file and command line. Now, we can
|
||||
# load plugin specific configuration.
|
||||
linter.load_plugin_configuration()
|
||||
|
@ -103,4 +97,10 @@ def _config_initialization(
|
|||
# Now that plugins are loaded, get list of all fail_on messages, and enable them
|
||||
linter.enable_fail_on_messages()
|
||||
|
||||
# args_list should now only be a list of files/directories to lint. All options have
|
||||
# been removed from the list
|
||||
if not parsed_args_list:
|
||||
print(linter.help())
|
||||
sys.exit(32)
|
||||
|
||||
return parsed_args_list
|
||||
|
|
Loading…
Reference in New Issue
Block a user