fix: enforce mandatory ID for --delete flag

Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-29 14:20:39 -03:00
parent 8c40b4de28
commit 019591ae23

View File

@@ -33,6 +33,11 @@ fn main() -> Result<(), Error> {
let mut cmd = Args::command(); let mut cmd = Args::command();
let args = Args::parse(); let args = Args::parse();
// Validate arguments based on mode
if let Err(e) = args.validate() {
cmd.error(ErrorKind::ValueValidation, e).exit();
}
stderrlog::new() stderrlog::new()
.module(module_path!()) .module(module_path!())
.quiet(args.options.quiet) .quiet(args.options.quiet)