Fix queue subcommand parsing

This commit is contained in:
Eric Traut
2026-04-12 13:59:43 -07:00
parent 05e49afbcf
commit 416d2e5fc3
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -191,6 +191,13 @@ mod tests {
assert_eq!(cmd.at, None);
}
#[test]
fn queue_without_required_args_is_subcommand_error() {
let err = MultitoolCli::try_parse_from(["codex", "queue"])
.expect_err("queue should be parsed as a subcommand, not as an interactive prompt");
assert_eq!(err.kind(), clap::error::ErrorKind::MissingRequiredArgument);
}
#[test]
fn queue_rejects_legacy_content_flag() {
assert!(