Skip to main content

parse_fields_arg

Function parse_fields_arg 

Source
pub fn parse_fields_arg(arg: &str) -> Result<Vec<String>, ApiError>
Expand description

Parse a comma-separated --fields argument, refusing names that are not keys of the issue JSON. An unknown name must fail rather than quietly filter every item down to an object that looks like the field is empty.