diff --git a/src/main.rs b/src/main.rs index 3fcc9a6..030a26b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -628,6 +628,15 @@ fn try_main(cli: Cli) -> Result { } } + // Accept the documented shapes `labels pending` / `labels search` + // as no-op words (the flags carry the real intent). + let paths: Vec<&std::path::PathBuf> = paths + .iter() + .filter(|p| { + let s = p.to_string_lossy(); + !(s == "pending" || s == "search") + }) + .collect(); let mut files: Vec = Vec::new(); for p in &paths { files.extend(collect_mq_files(p)?);