From 61304d829c2cd4d6edf3c015adae24d0574ce7a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 28 Sep 2024 21:04:16 +0200 Subject: Use "matching" as keyword for regex argument of "flush" Changelog: Change "flush" command to take regex argument via "matching" keyword --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0cf5f21..f189df0 100644 --- a/README.md +++ b/README.md @@ -248,10 +248,11 @@ In that case the expect command has to have the `capture` clause with matching n Results of the captures are then assigned to the newly created variables as strings. ``` -flush [from ] +flush [from ] [matching ] ``` Flush memory of `` output, so no following `expect` command will match anything produced up to this point. +If the `matching` clause is used, discard only output lines matching ``. ``` guard -- cgit v1.2.3