make short options work

This commit is contained in:
Tamás Gulácsi 2011-02-16 19:58:33 +01:00
parent a715eaa750
commit c630547441

View file

@ -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)