pub fn parse_sections(spec: &str) -> Result<Vec<Section>>Expand description
Parse a CLI --sections spec into a typed Section vec.
Format: comma-separated names matching Section::cli_name.
Whitespace around each name is trimmed. Empty input parses
to an empty Vec — caller treats that as “every section
renders” via DisplayOptions::is_section_enabled.
Errors (mirrored from parse_columns so the two CLI
surfaces report drift identically):
- Unknown name (cite the offending token; list valid names).
- Duplicate name across two entries.
- Empty token between commas.