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:
@@ -32,6 +32,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!())
|
||||||
|
|||||||
Reference in New Issue
Block a user