diff --git a/src/cli/mod.rs b/src/cli/mod.rs index ea3c234..a7571b5 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -75,6 +75,9 @@ pub struct Cli { /// Turn off stream mode #[arg(short = 'S', long)] pub no_stream: bool, + /// Disable memory for this invocation + #[arg(long)] + pub no_memory: bool, /// Display the message without sending it #[arg(long)] pub dry_run: bool, diff --git a/src/main.rs b/src/main.rs index c130a88..fa235f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -292,6 +292,9 @@ async fn run( if cli.no_stream { update_app_config(&mut ctx, |app| app.stream = false); } + if cli.no_memory { + update_app_config(&mut ctx, |app| app.memory = Some(false)); + } if cli.empty_session { ctx.empty_session()?; }