mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +00:00
Correct example register_options method
This commit is contained in:
parent
88d1dd280a
commit
478d5620d8
1 changed files with 2 additions and 1 deletions
|
|
@ -140,7 +140,8 @@ Or, you can write a tiny helper function:
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
def register_options(self, parser):
|
||||
@classmethod
|
||||
def register_options(cls, parser):
|
||||
register_opt(parser, '-X', '--example-flag', type='string',
|
||||
parse_from_config=True, help='...')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue