diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-03-26 03:58:03 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-03-26 03:58:03 +0200 |
commit | 65c25cb5e30e6b274522f83548015aa1a3e1d508 (patch) | |
tree | b9a72ac8778c70fb0fd3d1714b2f4dfc82541afa /pep8.py | |
parent | 21c7c9a5acf847f1bf47e9a33b205b783a1ee5ec (diff) | |
download | pep8-65c25cb5e30e6b274522f83548015aa1a3e1d508.tar.gz |
Change the defaut behaviour to --repeat.
Diffstat (limited to 'pep8.py')
-rwxr-xr-x | pep8.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)" % |