pub(crate) fn parse_emails(raw: &str) -> Result<Vec<String>>Expand description
Parse the --emails argument into a list of email addresses.
The legacy CLI accepts four shapes, in order of precedence:
- A JSON array:
["[email protected]", "[email protected]"] - A comma-separated list:
[email protected],[email protected] - A space-separated list:
[email protected] [email protected] - A single address:
[email protected]
Returns an error if the parsed list is empty or any entry fails a basic shape check.