moadim 1.7.4

Loop engine for AI agents — routines over REST, MCP, and a built-in web UI
#![allow(
    clippy::missing_docs_in_private_items,
    reason = "test helpers and fixtures do not need doc comments"
)]

use super::*;

#[test]
fn help_text_documents_every_accepted_flag() {
    let help = help_text();
    // Each alias `parse` accepts must be discoverable in `--help`, so the
    // documentation can't silently drift from the parser.
    for flag in [
        "-i",
        "--interactive",
        "-f",
        "--foreground", // foreground mode
        "-b",
        "--background",
        "-d",
        "--detach",
        "--daemon", // background mode
        "-h",
        "--help",
        "-V",
        "--version", // help & version
        "--json",
        "-q",
        "--quiet", // command flags
    ] {
        assert!(
            help.contains(flag),
            "help text is missing the `{flag}` flag that the parser accepts"
        );
    }
}