feat: handle numeric tags as ids for info mode

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 12:40:15 -03:00
parent 32a79c0a1b
commit 66f9b71258
2 changed files with 36 additions and 2 deletions

View File

@@ -58,9 +58,16 @@ fn main() -> Result<(), Error> {
let tags = &mut Vec::new();
for v in args.ids_or_tags.iter() {
debug!("MAIN: Parsed value: {:?}", v);
match v.clone() {
NumberOrString::Number(num) => ids.push(num),
NumberOrString::Str(str) => tags.push(str),
NumberOrString::Number(num) => {
debug!("MAIN: Adding to ids: {}", num);
ids.push(num)
},
NumberOrString::Str(str) => {
debug!("MAIN: Adding to tags: {}", str);
tags.push(str)
},
}
}