Skip to main content

parse

Function parse 

Source
pub fn parse(spec: &str) -> Result<Style, ParseError>
Expand description

Parse a style spec into an ansi::Style. Empty / whitespace-only input returns Style::default() so callers can treat empty CLI flags as “off”.