summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-13 09:12:30 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-13 09:12:30 +0200
commit6ff543b6ae5386dfb5d6616456a78030cbd6e230 (patch)
treec90c6e9728c90db683f8a7a0efdc02a4e71daae6
parentfced27d8c5af2c57b32163898be639fc8df96942 (diff)
downloadpep8-6ff543b6ae5386dfb5d6616456a78030cbd6e230.tar.gz
Do not expect arguments after --diff.
-rwxr-xr-xpep8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pep8.py b/pep8.py
index a82a73a..6767d00 100755
--- a/pep8.py
+++ b/pep8.py
@@ -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: