summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-05-27 10:50:33 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-05-27 10:50:33 +0200
commit23339acd1c256bdbba5c10ddfbd704b7c220c242 (patch)
tree4921946708fa041fe9e8e756e4e889cf60bb1c0e
parent7b3bf05aa260255712414397df7f22d7b64dfee0 (diff)
downloadpep8-23339acd1c256bdbba5c10ddfbd704b7c220c242.tar.gz
Option --show-pep8 should imply --first.
-rw-r--r--CHANGES.txt6
-rwxr-xr-xpep8.py5
2 files changed, 10 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index aa7ef99..1aec9d1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,12 @@ Changelog
=========
+1.2 (UNRELEASED)
+----------------
+
+* Option ``--show-pep8`` implies ``--first``.
+
+
1.1 (2012-05-24)
----------------
diff --git a/pep8.py b/pep8.py
index 66bbd7e..75a2a2b 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1318,7 +1318,8 @@ def process_options(arglist=None):
parser.add_option('--show-source', action='store_true',
help="show source code for each error")
parser.add_option('--show-pep8', action='store_true',
- help="show text of PEP 8 for each error")
+ help="show text of PEP 8 for each error "
+ "(implies --first)")
parser.add_option('--statistics', action='store_true',
help="count errors and warnings")
parser.add_option('--count', action='store_true',
@@ -1337,6 +1338,8 @@ def process_options(arglist=None):
help="run doctest on myself")
options, args = parser.parse_args(arglist)
+ if options.show_pep8:
+ options.repeat = False
if options.testsuite:
args.append(options.testsuite)
if not args and not options.doctest: