diff --git a/docs/source/dev/cross_compatibility.rst b/docs/source/dev/cross_compatibility.rst index 2efadf3..1aa45e3 100644 --- a/docs/source/dev/cross_compatibility.rst +++ b/docs/source/dev/cross_compatibility.rst @@ -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='...')