diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-05-27 10:50:33 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-05-27 10:50:33 +0200 |
commit | 23339acd1c256bdbba5c10ddfbd704b7c220c242 (patch) | |
tree | 4921946708fa041fe9e8e756e4e889cf60bb1c0e | |
parent | 7b3bf05aa260255712414397df7f22d7b64dfee0 (diff) | |
download | pep8-23339acd1c256bdbba5c10ddfbd704b7c220c242.tar.gz |
Option --show-pep8 should imply --first.
-rw-r--r-- | CHANGES.txt | 6 | ||||
-rwxr-xr-x | pep8.py | 5 |
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) ---------------- @@ -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: |