mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-03 03:56:52 +00:00
make short options work
This commit is contained in:
parent
a715eaa750
commit
c630547441
1 changed files with 1 additions and 2 deletions
|
|
@ -42,9 +42,8 @@ def _get_python_files(paths):
|
|||
|
||||
|
||||
def main():
|
||||
pep8.process_options()
|
||||
options, args = pep8.process_options()
|
||||
warnings = 0
|
||||
args = sys.argv[1:]
|
||||
if args:
|
||||
for path in _get_python_files(args):
|
||||
warnings += check_file(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue