From 019591ae23eb10bcf0b6809e5c063424a08b83b1 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Fri, 29 Aug 2025 14:20:39 -0300 Subject: [PATCH] fix: enforce mandatory ID for --delete flag Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 7ddcbbe..f4d6493 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,6 +32,11 @@ fn main() -> Result<(), Error> { let mut cmd = Args::command(); let args = Args::parse(); + + // Validate arguments based on mode + if let Err(e) = args.validate() { + cmd.error(ErrorKind::ValueValidation, e).exit(); + } stderrlog::new() .module(module_path!())