From 45dcea62277470d8deee9b8c7e69d436c149ceb6 Mon Sep 17 00:00:00 2001 From: Tom Lancaster Date: Tue, 7 May 2024 14:50:50 +0100 Subject: [PATCH] Attempt to fix docs adding --strict-escape to CLI help and main yara docs --- docs/commandline.rst | 6 ++++++ yara.man | 3 +++ 2 files changed, 9 insertions(+) diff --git a/docs/commandline.rst b/docs/commandline.rst index 714060c937..67e566cbf5 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 657619cc6f..4f244f3fed 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