From b81f7cfcab1713a263dff913a3038809062a9465 Mon Sep 17 00:00:00 2001 From: cliffmccarthy <16453869+cliffmccarthy@users.noreply.github.com> Date: Sun, 6 Jul 2025 14:06:14 -0500 Subject: [PATCH] fix: Update argument documentation and handling in repl (#6979) - Updated argument descriptions in help for import-keys, createbroadcast, and groupimage. - Revised import-keys to check for the required argument. --- deltachat-repl/src/cmdline.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deltachat-repl/src/cmdline.rs b/deltachat-repl/src/cmdline.rs index e7d7cbda4..92c6c7e91 100644 --- a/deltachat-repl/src/cmdline.rs +++ b/deltachat-repl/src/cmdline.rs @@ -324,7 +324,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu send-backup\n\ receive-backup \n\ export-keys\n\ - import-keys\n\ + import-keys \n\ poke [|| ]\n\ reset \n\ stop\n\ @@ -352,12 +352,12 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu chat [|0]\n\ createchat \n\ creategroup \n\ - createbroadcast\n\ + createbroadcast \n\ createprotected \n\ addmember \n\ removemember \n\ groupname \n\ - groupimage []\n\ + groupimage \n\ chatinfo\n\ sendlocations \n\ setlocation \n\ @@ -489,6 +489,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu println!("Exported to {}.", dir.to_string_lossy()); } "import-keys" => { + ensure!(!arg1.is_empty(), "Argument missing."); imex(&context, ImexMode::ImportSelfKeys, arg1.as_ref(), None).await?; } "poke" => {