//! Handler for `mcptest distill` (WOR-1263). Lowers the clap struct into
//! the plain-data [`crate::commands::DistillRunArgs`] so the engine stays
//! free of clap, matching the propose handler's shape.

use anyhow::Result;

use crate::cli::args::DistillArgs;
use crate::commands;

/// Dispatch for `mcptest distill`.
pub(crate) fn distill_command(args: DistillArgs) -> Result<i32> {
    commands::run_distill(commands::DistillRunArgs {
        cassette: args.cassette,
        output: args.output,
        server_name: args.server_name,
    })
}
