Lines Matching refs:arg
251 fn parse_arg_ro_fds(arg: &str) -> Result<(i32, FdConfig)> { in parse_arg_ro_fds()
252 let result: Result<Vec<i32>, _> = arg.split(':').map(|x| x.parse::<i32>()).collect(); in parse_arg_ro_fds()
255 bail!("Too many options: {}", arg); in parse_arg_ro_fds()
269 fn parse_arg_rw_fds(arg: &str) -> Result<(i32, FdConfig)> { in parse_arg_rw_fds()
270 let fd = arg.parse::<i32>()?; in parse_arg_rw_fds()
281 .arg(clap::Arg::with_name("ro-fds") in parse_args()
285 .arg(clap::Arg::with_name("rw-fds") in parse_args()
293 for arg in args { in parse_args()
294 let (fd, config) = parse_arg_ro_fds(arg)?; in parse_args()
299 for arg in args { in parse_args()
300 let (fd, config) = parse_arg_rw_fds(arg)?; in parse_args()