diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d7d51f93..62cc3387 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -20,6 +20,12 @@ Deprecated and ``hawkmoth.ext.napoleon`` extensions and the ``hawkmoth-process-docstring`` event. +Removed +~~~~~~~ + +* ``hawkmoth --compat={none,javadoc-basic,javadoc-liberal,kernel-doc}`` option + from CLI + Hawkmoth `0.18.0`_ ------------------ diff --git a/src/hawkmoth/__main__.py b/src/hawkmoth/__main__.py index 7b1dfc16..d225c505 100644 --- a/src/hawkmoth/__main__.py +++ b/src/hawkmoth/__main__.py @@ -14,7 +14,6 @@ from hawkmoth.ext import javadoc from hawkmoth.ext import napoleon from hawkmoth.parser import parse -from hawkmoth.util import doccompat def filename(file): if os.path.isfile(file): @@ -31,11 +30,6 @@ def _process_docstring(transform, lines): if fn: fn(lines) -def _process_docstring_compat(args, lines): - text = '\n'.join(lines) - text = doccompat.convert(text, transform=args.compat) - lines[:] = [line for line in text.splitlines()] - def _read_version(): try: with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), @@ -64,14 +58,6 @@ def main(): 'napoleon', ], help='Process docstring.') - compat.add_argument('--compat', - choices=[ - 'none', - 'javadoc-basic', - 'javadoc-liberal', - 'kernel-doc' - ], - help='Compatibility options. See cautodoc_compat.') parser.add_argument('--clang', metavar='PARAM', action='append', help='Argument to pass to Clang. May be specified multiple times. See cautodoc_clang.') # noqa: E501 parser.add_argument('--verbose', dest='verbose', action='store_true', @@ -86,7 +72,7 @@ def main(): if args.process_docstring: def process_docstring(lines): return _process_docstring(args.process_docstring, lines) else: - def process_docstring(lines): return _process_docstring_compat(args, lines) + process_docstring = None for comment in comments.walk(): if args.verbose: