Home
last modified time | relevance | path

Searched refs:arg_os (Results 1 – 1 of 1) sorted by relevance

/external/rust/crates/clap/src/app/
Dparser.rs692 fn possible_subcommand(&self, arg_os: &OsStr) -> (bool, Option<&str>) { in possible_subcommand()
697 debugln!("Parser::possible_subcommand: arg={:?}", arg_os); in possible_subcommand()
709 if let Some(sc) = find_subcmd!(self, arg_os) { in possible_subcommand()
717 starts(&s.p.meta.name[..], &*arg_os) in possible_subcommand()
725 .filter(|&&(a, _)| starts(a, &*arg_os)) in possible_subcommand()
733 if OsStr::new(sc) == arg_os { in possible_subcommand()
820 fn is_new_arg(&mut self, arg_os: &OsStr, needs_val_of: ParseResult) -> bool { in is_new_arg()
821 debugln!("Parser::is_new_arg:{:?}:{:?}", arg_os, needs_val_of); in is_new_arg()
825 let a = arg_os.to_string_lossy(); in is_new_arg()
858 let mut ret = if arg_os.starts_with(b"--") { in is_new_arg()
[all …]