Add support for registering options in Flake8 3
diff --git a/README.rst b/README.rst
index 8bc6376..029e759 100644
--- a/README.rst
+++ b/README.rst
@@ -65,6 +65,13 @@
Changes
-------
+0.5.0 - 2016-05-30
+``````````````````
+
+* PyCon 2016 PDX release
+
+* Add support for Flake8 3.0
+
0.4.0 - 2016-01-27
``````````````````
diff --git a/mccabe.py b/mccabe.py
index 3823757..ff25aa6 100644
--- a/mccabe.py
+++ b/mccabe.py
@@ -14,7 +14,7 @@
except ImportError: # Python 2.5
from flake8.util import ast, iter_child_nodes
-__version__ = '0.4.0'
+__version__ = '0.5.0'
class ASTVisitor(object):
@@ -236,7 +236,7 @@
def add_options(cls, parser):
flag = '--max-complexity'
kwargs = {
- 'defaults': -1,
+ 'default': -1,
'action': 'store',
'type': 'int',
'help': 'McCabe complexity threshold',