Lines Matching refs:value
235 let value = "9";
236 debug_assert_eq!(b'\t'.to_string(), value);
238 clap::builder::PossibleValue::new(value)
244 let value = "63";
245 debug_assert_eq!(b'?'.to_string(), value);
247 clap::builder::PossibleValue::new(value)
253 let value = "33";
254 debug_assert_eq!(b'!'.to_string(), value);
256 clap::builder::PossibleValue::new(value)
262 let value = "64";
263 debug_assert_eq!(b'@'.to_string(), value);
265 clap::builder::PossibleValue::new(value)
271 let value = "37";
272 debug_assert_eq!(b'%'.to_string(), value);
274 clap::builder::PossibleValue::new(value)
329 if let Ok(value) = arg.to_value() {
330 if let Some(next_cmd) = current_cmd.find_subcommand(value) {
372 if let Some((flag, value)) = arg.to_long() {
374 if let Some(value) = value {
378 complete_arg_value(value.to_str().ok_or(value), arg, current_dir)
423 if let Ok(value) = arg.to_value() {
424 completions.extend(complete_subcommand(value, cmd));
431 value: Result<&str, &clap_lex::RawOsStr>,
436 debug!("complete_arg_value: arg={:?}, value={:?}", arg, value);
439 if let Ok(value) = value {
442 name.starts_with(value).then(|| name.into())
446 let value_os = match value {
447 Ok(value) => clap_lex::RawOsStr::from_str(value),
535 fn complete_subcommand(value: &str, cmd: &clap::Command) -> Vec<OsString> {
537 "complete_subcommand: cmd={:?}, value={:?}",
539 value
544 .filter(|x| x.0.starts_with(value))