use crateCliArgs;
use cratewarn_if_svg_too_large;
use ;
use write;
/// Write the rendered SVG to file or print it to stdout, based on CLI flags.
///
/// Behavior:
/// - If `--output` is specified:
/// - Saves the SVG to the given file path
/// - Emits a size warning if the file exceeds 1MB
/// - Otherwise:
/// - Prints the SVG to stdout (for piping or previewing)
///
/// Returns an error if the file cannot be written.
pub