Searched refs:did_you_mean (Results 1 – 5 of 5) sorted by relevance
/third_party/rust/crates/clap/src/parser/features/ |
D | suggestions.rs | 11 pub(crate) fn did_you_mean<T, I>(v: &str, possible_values: I) -> Vec<String> in did_you_mean() function 29 pub(crate) fn did_you_mean<T, I>(_: &str, _: I) -> Vec<String> in did_you_mean() function 51 match did_you_mean(arg, longs).pop() { in did_you_mean_flag() 68 let candidate = some!(did_you_mean(arg, longs).pop()); in did_you_mean_flag() 84 assert_eq!(did_you_mean("tst", p_vals.iter()), vec!["test"]); in missing_letter() 90 assert_eq!(did_you_mean("te", p_vals.iter()), vec!["test", "temp"]); in ambiguous() 97 did_you_mean("hahaahahah", p_vals.iter()), in unrelated() 112 did_you_mean("alignmentScorr", p_vals.iter()), in best_fit() 121 did_you_mean("alignmentScorr", p_vals.iter()), in best_fit_long_common_prefix_issue_4660()
|
/third_party/rust/crates/clap/src/error/ |
D | format.rs | 76 did_you_mean(&mut styled, "subcommand", valid); in format_error() 84 did_you_mean(&mut styled, "argument", valid); in format_error() 92 did_you_mean(&mut styled, "value", valid); in format_error() 429 fn did_you_mean(styled: &mut StyledStr, context: &str, valid: &ContextValue) { in did_you_mean() function
|
D | mod.rs | 401 let suggestion = suggestions::did_you_mean(&bad_val, good_vals.iter()).pop(); in invalid_value() 428 did_you_mean: Vec<String>, in invalid_subcommand() 449 ContextValue::Strings(did_you_mean), in invalid_subcommand() 655 did_you_mean: Option<(String, Option<String>)>, in unknown_argument() 681 match did_you_mean { in unknown_argument()
|
/third_party/rust/crates/clap/src/parser/ |
D | parser.rs | 506 let candidates = suggestions::did_you_mean( in match_arg_error() 1542 let did_you_mean = suggestions::did_you_mean_flag( in did_you_mean_error() localVariable 1550 if let Some((name, _)) = did_you_mean.as_ref() { in did_you_mean_error() 1570 did_you_mean.is_none() && !trailing_values && self.cmd.has_positionals(); in did_you_mean_error() 1574 did_you_mean, in did_you_mean_error()
|
/third_party/rust/crates/clap/tests/builder/ |
D | opts.rs | 447 fn did_you_mean() { in did_you_mean() function
|