//! Example: read URLs from stdin in batch mode.
//!
//! Run with:
//!
//! ```text
//! cat urls.txt | cargo run --example batch
//! ```
//!
//! `urls.txt` is one URL per line. The example passes `--batch` and
//! `--json` to [`Cli::parse_from`], then forwards the parsed
//! configuration to [`youtube_legend_cli::run`]. Each subtitle is
//! emitted as a separate JSON object on stdout.
use Parser;
use ExitCode;
use ;
async