Commits

Chris Adams  committed 05546b0

Port non-standard pep8 --max-complexity option

  • Participants
  • Parent commits d06ec12

Comments (0)

Files changed (1)

File flake8/pep8.py

     global options, args
     parser = OptionParser(version=__version__,
                           usage="%prog [options] input ...")
+    parser.add_option('--max-complexity', default=-1, action='store',
+                      type='int', help="McCabe complexity treshold")
     parser.add_option('-v', '--verbose', default=0, action='count',
                       help="print status messages, or debug with -vv")
     parser.add_option('-q', '--quiet', default=0, action='count',