From 5f2a2213ac542f25de6ae89154316d97c202abf0 Mon Sep 17 00:00:00 2001 From: Tom Lancaster Date: Sat, 18 May 2024 11:07:23 +0100 Subject: [PATCH] Attempt to fix docs adding --strict-escape to CLI help and main yara docs (#2077) --- docs/commandline.rst | 6 ++++++ yara.man | 3 +++ 2 files changed, 9 insertions(+) diff --git a/docs/commandline.rst b/docs/commandline.rst index 714060c9..67e566cb 100644 --- a/docs/commandline.rst +++ b/docs/commandline.rst @@ -148,6 +148,12 @@ Available options are: Scan files listed in FILE, one per line. +.. option:: --strict-escape + + Print warnings if a string contains an invalid escape sequence. + + .. versionadded:: 4.5.0 + .. option:: -z --skip-larger= Skip files larger than the given in bytes when scanning a directory. diff --git a/yara.man b/yara.man index 657619cc..4f244f3f 100644 --- a/yara.man +++ b/yara.man @@ -103,6 +103,9 @@ in bytes when scanning a directory. Set maximum stack size to the specified number of .I slots. .TP +.BI " --strict-escape" +Print warnings if rules contain ambiguous escape statements. +.TP .BI \-t " tag" " --tag=" tag Print rules tagged as .I tag