Home
last modified time | relevance | path

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

/third_party/rust/crates/clap/src/error/
Dformat.rs197 let possible_values = error.get(ContextKind::ValidValue); in write_dynamic_context() localVariable
198 if let Some(ContextValue::Strings(possible_values)) = possible_values { in write_dynamic_context()
199 if !possible_values.is_empty() { in write_dynamic_context()
203 if let Some((last, elements)) = possible_values.split_last() { in write_dynamic_context()
250 let possible_values = error.get(ContextKind::ValidSubcommand); in write_dynamic_context() localVariable
251 if let Some(ContextValue::Strings(possible_values)) = possible_values { in write_dynamic_context()
252 if !possible_values.is_empty() { in write_dynamic_context()
256 if let Some((last, elements)) = possible_values.split_last() { in write_dynamic_context()
/third_party/rust/crates/clap/src/builder/
Dvalue_parser.rs243 pub fn possible_values( in possible_values() method
246 self.any_value_parser().possible_values() in possible_values()
589 fn possible_values( in possible_values() method
625 fn possible_values( in possible_values() function
628 P::possible_values(self) in possible_values()
715 fn possible_values( in possible_values() method
1084 fn possible_values( in possible_values() method
1194 fn possible_values( in possible_values() method
1622 fn possible_values() -> impl Iterator<Item = crate::builder::PossibleValue> { in possible_values() method
1645 let possible_vals = Self::possible_values() in parse_ref()
[all …]
Darg.rs3828 .possible_values() in get_possible_values()
/third_party/rust/crates/clap/src/parser/features/
Dsuggestions.rs11 pub(crate) fn did_you_mean<T, I>(v: &str, possible_values: I) -> Vec<String> in did_you_mean()
16 let mut candidates: Vec<(f64, String)> = possible_values in did_you_mean()
/third_party/rust/crates/clap/clap_complete/src/shells/
Dbash.rs203 if let Some(vals) = crate::generator::utils::possible_values(o) { in vals_for()
230 if let Some(vals) = utils::possible_values(pos) { in all_options_for_path()
Dfish.rs162 if let Some(data) = crate::generator::utils::possible_values(option) { in value_completion()
Dzsh.rs357 if let Some(values) = crate::generator::utils::possible_values(arg) {
/third_party/rust/crates/clap/tests/builder/
Dmain.rs39 mod possible_values; module
/third_party/rust/crates/clap/clap_complete/src/generator/
Dutils.rs123 pub fn possible_values(a: &Arg) -> Option<Vec<clap::builder::PossibleValue>> { in possible_values() function
128 .possible_values() in possible_values()
/third_party/rust/crates/clap/clap_complete/src/
Ddynamic.rs438 if let Some(possible_values) = crate::generator::utils::possible_values(arg) { in complete_arg_value()
440 values.extend(possible_values.into_iter().filter_map(|p| { in complete_arg_value()
/third_party/rust/crates/clap/clap_mangen/tests/
Droff.rs67 fn possible_values() { in possible_values() function
/third_party/rust/crates/codespan/codespan-reporting/examples/
Dreusable_diagnostic.rs14 possible_values = ColorArg::VARIANTS,
Dterm.rs22 possible_values = ColorArg::VARIANTS,
Dreadme_preview.rs29 possible_values = ColorArg::VARIANTS,
/third_party/rust/crates/aho-corasick/aho-corasick-debug/
Dmain.rs69 .possible_values(&[ in parse()
/third_party/rust/crates/clap/clap_complete_fig/src/
Dfig.rs392 if let Some(data) = generator::utils::possible_values(arg) { in gen_args()
/third_party/rust/crates/clap/src/parser/
Dvalidator.rs561 .possible_values() in get_possible_values_cli()
/third_party/rust/crates/clap/
DCHANGELOG.md721 - `Arg::possible_values` with `Arg::value_parser([...])`, `builder::PossibleValuesParser`, or `buil…
1323 - Deriving of `ArgEnum` for generating `Arg::possible_values` (requires `derive` feature flag)
1568 …ame, all bash completions fall back to file completions UNLESS `Arg::possible_values` was used ([8…
1666 * Adds Arg::case_insensitive(bool) which allows matching Arg::possible_values without worrying ab…