diff options
| author | Anthony Sottile <asottile@umich.edu> | 2020-05-11 18:26:34 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2020-05-11 18:34:15 -0700 |
| commit | 4888eb65c5637568b3762a36b695a54a2c6c0113 (patch) | |
| tree | 5dd64262ca4e05309ae58aa711f30ed005ab859a /src/flake8/api | |
| parent | b4d285019210ccdb5d526e64c281db64e5316d6c (diff) | |
| download | flake8-output_file_fix.tar.gz | |
Fix --output-file regressionoutput_file_fix
Diffstat (limited to 'src/flake8/api')
| -rw-r--r-- | src/flake8/api/legacy.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/flake8/api/legacy.py b/src/flake8/api/legacy.py index 68df9a2..f71d899 100644 --- a/src/flake8/api/legacy.py +++ b/src/flake8/api/legacy.py @@ -29,7 +29,7 @@ def get_style_guide(**kwargs): :class:`StyleGuide` """ application = app.Application() - prelim_opts, remaining_args = application.parse_preliminary_options([]) + prelim_opts = application.parse_preliminary_options([]) flake8.configure_logging(prelim_opts.verbose, prelim_opts.output_file) config_finder = config.ConfigFileFinder( application.program, @@ -40,9 +40,7 @@ def get_style_guide(**kwargs): application.find_plugins(config_finder) application.register_plugin_options() - application.parse_configuration_and_cli( - config_finder, remaining_args, - ) + application.parse_configuration_and_cli(config_finder, []) # We basically want application.initialize to be called but with these # options set instead before we make our formatter, notifier, internal # style guide and file checker manager. |
