summaryrefslogtreecommitdiff
path: root/pep8.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-03-26 03:58:03 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-03-26 03:58:03 +0200
commit65c25cb5e30e6b274522f83548015aa1a3e1d508 (patch)
treeb9a72ac8778c70fb0fd3d1714b2f4dfc82541afa /pep8.py
parent21c7c9a5acf847f1bf47e9a33b205b783a1ee5ec (diff)
downloadpep8-65c25cb5e30e6b274522f83548015aa1a3e1d508.tar.gz
Change the defaut behaviour to --repeat.
Diffstat (limited to 'pep8.py')
-rwxr-xr-xpep8.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pep8.py b/pep8.py
index 60fa8e0..25f0047 100755
--- a/pep8.py
+++ b/pep8.py
@@ -1263,8 +1263,10 @@ def process_options(arglist=None):
help="print status messages, or debug with -vv")
parser.add_option('-q', '--quiet', default=0, action='count',
help="report only file names, or nothing with -qq")
- parser.add_option('-r', '--repeat', action='store_true',
- help="show all occurrences of the same error")
+ parser.add_option('-r', '--repeat', default=True, action='store_true',
+ help="(obsolete) show all occurrences of the same error")
+ parser.add_option('--first', action='store_false', dest='repeat',
+ help="show first occurrence of each error")
parser.add_option('--exclude', metavar='patterns', default=DEFAULT_EXCLUDE,
help="exclude files or directories which match these "
"comma separated patterns (default: %s)" %