ai-dispatch 9.7.0

Multi-AI CLI team orchestrator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Focused generated-help tests for timeout-related CLI flags.
// Exports: none; loaded by `cli/mod.rs` under `#[cfg(test)]`.
// Deps: clap CommandFactory and the top-level CLI parser.

use super::Cli;
use clap::CommandFactory;

#[test]
fn run_timeout_help_names_seconds_unit() {
    let mut cmd = Cli::command();
    let run = cmd.find_subcommand_mut("run").expect("run subcommand");
    let help = run.render_long_help().to_string();

    assert!(help.contains("--timeout <SECS>"), "got: {help}");
    assert!(help.contains("Hard cap for the run in seconds"), "got: {help}");
    assert!(help.contains("for minutes, multiply by 60"), "got: {help}");
}