mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-02 11:56:52 +00:00
Fix finding of local config files.
This commit is contained in:
parent
cead98598a
commit
54a8a551b3
2 changed files with 12 additions and 2 deletions
|
|
@ -131,8 +131,8 @@ class Application(object):
|
|||
pass
|
||||
|
||||
opts, args = self.option_manager.parse_known_args(args)
|
||||
# parse_known_args includes unknown options as args; get rid of them
|
||||
args = [a for a in args if not a.startswith('-')]
|
||||
# parse_known_args includes program name and unknown options as args
|
||||
args = [a for a in args[1:] if not a.startswith('-')]
|
||||
self.prelim_opts, self.prelim_args = opts, args
|
||||
|
||||
def exit(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue