pub fn validate(
spec: &str,
table: &[Field],
) -> Result<Vec<String>, InvalidFields>Expand description
Parse and validate a comma-separated --fields spec against a table.
Returns the requested names in the order given. Empty segments (a,,b) and
surrounding whitespace are tolerated; anything not in the table is an error.