Skip to main content

report

Function report 

Source
pub fn report(spec: &Spec<'_>, argv: &[&OsStr], error: &Error<'_, '_>) -> Report
Expand description

Describe a parse outcome as stable fields plus the ordinary plain-text rendering.

Locations are present when one argv word (or bytes within it) caused the failure. They are absent for omissions and command-wide relationship failures, which have no honest single token to underline.