From aaea0ff7029356108c59198fbbad505277a7c05e Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 14 Oct 2024 18:20:07 +0800 Subject: feat: add CLI option `--empty-session` (#922) --- src/repl/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/repl/mod.rs') diff --git a/src/repl/mod.rs b/src/repl/mod.rs index a7b2573..5a741c2 100644 --- a/src/repl/mod.rs +++ b/src/repl/mod.rs @@ -475,7 +475,7 @@ impl Repl { }, ".clear" => match args { Some("messages") => { - self.config.write().clear_session_messages()?; + self.config.write().empty_session()?; } _ => unknown_command()?, }, -- cgit v1.2.3