From 2076b3b3040bfb2aa415e0db320286c56a1d1413 Mon Sep 17 00:00:00 2001 From: geisserml Date: Sun, 16 Feb 2025 20:49:01 +0100 Subject: [PATCH] Slightly improve previous commit --- src/ctypesgen/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ctypesgen/__main__.py b/src/ctypesgen/__main__.py index 1485bb2..15c9f4d 100644 --- a/src/ctypesgen/__main__.py +++ b/src/ctypesgen/__main__.py @@ -388,7 +388,7 @@ def __call__(self, parser, namespace, values, option_string=None): parser.add_argument( "--optimize-lexer", action="store_true", - help="Run the lexer in optimized mode by using a pre-compiled lextab file included in the sources. This allows to run ctypesgen in python's optimized mode, which discards docstrings (PLY relies on docstrings for lexer declarations). It may also improve performance, at the cost of disabling most error checking. If the lexer has been changed, re-generate lextab by deleting it and running ctypesgen with this option, in python's normal operating mode. See also chapter '4.13 Optimized mode' of the PLY manual.", + help="Run the lexer in optimized mode by using a pre-compiled lextab file included in the sources. This allows to run ctypesgen in python's optimized mode, which discards docstrings (PLY relies on docstrings for lexer declarations). It may also improve performance, at the cost of disabling most error checking. If the lexer has been changed, re-generate lextab.py by deleting it and running ctypesgen with this option, in python's normal operating mode. See also chapter '4.13 Optimized mode' of the PLY manual.", ) # Processor options