From c63054744184cd08edf35b4a0a72638100348dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20Gul=C3=A1csi?= Date: Wed, 16 Feb 2011 19:58:33 +0100 Subject: [PATCH] make short options work --- flake8/run.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flake8/run.py b/flake8/run.py index ce7728f..68682bd 100644 --- a/flake8/run.py +++ b/flake8/run.py @@ -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)