summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-10-14 18:20:07 +0800
committerGitHub <noreply@github.com>2024-10-14 18:20:07 +0800
commitaaea0ff7029356108c59198fbbad505277a7c05e (patch)
tree6af3839da4e576c2cf622e398746b37e4e73225b /src/cli.rs
parent349c23647284b3a2cd3cc3fda4d02bb43fc38acf (diff)
downloadaichat-aaea0ff7029356108c59198fbbad505277a7c05e.tar.gz
feat: add CLI option `--empty-session` (#922)
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cli.rs b/src/cli.rs
index e59571d..643b1d8 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -15,7 +15,10 @@ pub struct Cli {
/// Start or join a session
#[clap(short = 's', long)]
pub session: Option<Option<String>>,
- /// Forces the session to be saved
+ /// Ensure the session is empty
+ #[clap(long)]
+ pub empty_session: bool,
+ /// Force the session to be saved
#[clap(long)]
pub save_session: bool,
/// Start a agent