1. Jannis Leidel
  2. flake8

Commits

Tamás Gulácsi  committed 5559c5b

make short options work

  • Participants
  • Parent commits a94428a
  • Branches default

Comments (0)

Files changed (1)

File flake8/run.py

View file
  • Ignore whitespace
 
 
 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)