Skip to main content

resolve_output_format

Function resolve_output_format 

Source
pub fn resolve_output_format(
    explicit: Option<Format>,
    inputs: &[Format],
) -> Result<Format>
Expand description

Decides the output format from -f and the inputs.

Following the first input’s format would mean reordering arguments silently changes the output encoding, so mixed inputs demand an explicit choice.