mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 08:24:46 +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():
|
def main():
|
||||||
pep8.process_options()
|
options, args = pep8.process_options()
|
||||||
warnings = 0
|
warnings = 0
|
||||||
args = sys.argv[1:]
|
|
||||||
if args:
|
if args:
|
||||||
for path in _get_python_files(args):
|
for path in _get_python_files(args):
|
||||||
warnings += check_file(path)
|
warnings += check_file(path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue