diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-06-13 09:12:30 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-06-13 09:12:30 +0200 |
commit | 6ff543b6ae5386dfb5d6616456a78030cbd6e230 (patch) | |
tree | c90c6e9728c90db683f8a7a0efdc02a4e71daae6 | |
parent | fced27d8c5af2c57b32163898be639fc8df96942 (diff) | |
download | pep8-6ff543b6ae5386dfb5d6616456a78030cbd6e230.tar.gz |
Do not expect arguments after --diff.
-rwxr-xr-x | pep8.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1908,7 +1908,7 @@ def process_options(arglist=None, parse_argv=False): if options.testsuite: args.append(options.testsuite) elif not options.doctest: - if parse_argv and not args: + if parse_argv and not args and not options.diff: if os.path.exists('.pep8'): args = ['.'] else: |