in vsock_sample/rs/src/command_parser.rs [37:43]
fn parse_port(args: &ArgMatches) -> Result<u32, String> {
let port = args
.value_of("port")
.ok_or("Could not find port argument")?;
port.parse()
.map_err(|_err| "port is not a number".to_string())
}