cute::valFunction value_or_err
Source pub fn value_or_err(val: Option<&String>) -> Result<&String, Error>
Expand description
Converts an optional string value into a required value
§Arguments
val
- An optional string reference from command line arguments
§Returns
Returns the string reference if present, or an Error if None