Function mz_pgwire::protocol::parse_option
source ยท fn parse_option(option: &str) -> Result<(&str, &str), ()>
Expand description
Returns the parsed key and value from option of the form --key=value
, -c key=value
, or -ckey=value
. Keys replace -
with _
. Returns an error if
there was some other prefix.