/third_party/rust/crates/clap/src/builder/ |
D | mod.rs | 17 mod value_parser; module 38 pub use value_parser::_AutoValueParser; 39 pub use value_parser::via_prelude; 40 pub use value_parser::BoolValueParser; 41 pub use value_parser::BoolishValueParser; 42 pub use value_parser::EnumValueParser; 43 pub use value_parser::FalseyValueParser; 44 pub use value_parser::MapValueParser; 45 pub use value_parser::NonEmptyStringValueParser; 46 pub use value_parser::OsStringValueParser; [all …]
|
D | value_parser.rs | 2098 fn value_parser() -> Self::Parser; in value_parser() method 2102 fn value_parser() -> Self::Parser { in value_parser() method 2108 fn value_parser() -> Self::Parser { in value_parser() method 2114 fn value_parser() -> Self::Parser { in value_parser() method 2120 fn value_parser() -> Self::Parser { in value_parser() method 2126 fn value_parser() -> Self::Parser { in value_parser() method 2134 fn value_parser() -> Self::Parser { in value_parser() method 2142 fn value_parser() -> Self::Parser { in value_parser() method 2150 fn value_parser() -> Self::Parser { in value_parser() method 2158 fn value_parser() -> Self::Parser { in value_parser() method [all …]
|
/third_party/rust/crates/clap/tests/builder/ |
D | utf16.rs | 7 use clap::{arg, value_parser, Command}; 26 .arg(arg!(<arg> "some arg").value_parser(value_parser!(OsString))) in invalid_utf16_positional() 37 .arg(arg!(-a --arg <arg> "some arg").value_parser(value_parser!(OsString))) in invalid_utf16_option_short_space() 52 .arg(arg!(-a --arg <arg> "some arg").value_parser(value_parser!(OsString))) in invalid_utf16_option_short_equals() 63 .arg(arg!(-a --arg <arg> "some arg").value_parser(value_parser!(OsString))) in invalid_utf16_option_short_no_space() 74 .arg(arg!(-a --arg <arg> "some arg").value_parser(value_parser!(OsString))) in invalid_utf16_option_long_space() 89 .arg(arg!(-a --arg <arg> "some arg").value_parser(value_parser!(OsString))) in invalid_utf16_option_long_equals()
|
D | possible_values.rs | 9 .arg(Arg::new("positional").index(1).value_parser(["test123"])) in possible_values_of_positional() 28 .value_parser([PossibleValue::new("test123") in possible_value_arg_value() 47 .arg(Arg::new("positional").index(1).value_parser(["test123"])) in possible_values_of_positional_fail() 61 .value_parser(["test123", "test321"]) in possible_values_of_positional_multiple() 86 .value_parser(["test123", "test321"]) in possible_values_of_positional_multiple_fail() 103 .value_parser(["test123"]), in possible_values_of_option() 125 .value_parser(["test123"]), in possible_values_of_option_fail() 141 .value_parser(["test123", "test321"]) in possible_values_of_option_multiple() 167 .value_parser(["test123", "test321"]) in possible_values_of_option_multiple_fail() 202 .value_parser(["slow", "fast", "ludicrous speed"]), in possible_values_output() [all …]
|
D | arg_matches.rs | 1 use clap::{arg, value_parser, Command}; 8 .arg(arg!(--color <when>).value_parser(["auto", "always", "never"])) in ids() 9 .arg(arg!(--config <path>).value_parser(value_parser!(std::path::PathBuf))) in ids() 22 .arg(arg!(--color <when>).value_parser(["auto", "always", "never"])) in ids_ignore_unused() 23 .arg(arg!(--config <path>).value_parser(value_parser!(std::path::PathBuf))) in ids_ignore_unused() 36 .arg(arg!(--color <when>).value_parser(["auto", "always", "never"])) in ids_ignore_overridden() 39 .value_parser(value_parser!(std::path::PathBuf)) in ids_ignore_overridden()
|
D | utf8.rs | 3 use clap::{arg, error::ErrorKind, value_parser, Arg, ArgAction, Command}; 128 .arg(Arg::new("arg").value_parser(value_parser!(OsString))) in invalid_utf8_positional() 147 .value_parser(value_parser!(OsString)), in invalid_utf8_option_short_space() 171 .value_parser(value_parser!(OsString)), in invalid_utf8_option_short_equals() 194 .value_parser(value_parser!(OsString)), in invalid_utf8_option_short_no_space() 217 .value_parser(value_parser!(OsString)), in invalid_utf8_option_long_space() 241 .value_parser(value_parser!(OsString)), in invalid_utf8_option_long_equals() 260 .external_subcommand_value_parser(value_parser!(String)) in refuse_invalid_utf8_subcommand_with_allow_external_subcommands() 287 .external_subcommand_value_parser(value_parser!(String)) in refuse_invalid_utf8_subcommand_args_with_allow_external_subcommands() 340 .external_subcommand_value_parser(value_parser!(String)); in allow_validated_utf8_external_subcommand_values_of() [all …]
|
D | empty_values.rs | 37 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in no_empty_values() 48 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in no_empty_values() 62 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in no_empty_values_with_equals() 73 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in no_empty_values_with_equals() 87 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in no_empty_values_without_equals() 98 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in no_empty_values_without_equals() 112 .value_parser(clap::builder::NonEmptyStringValueParser::new()) in no_empty_values_without_equals_but_requires_equals()
|
D | env.rs | 44 .value_parser(FalseyValueParser::new()), in env_bool_literal() 51 .value_parser(FalseyValueParser::new()), in env_bool_literal() 58 .value_parser(FalseyValueParser::new()), in env_bool_literal() 331 .value_parser(["env"]), in possible_value() 353 .value_parser(["never"]), in not_possible_value() 361 fn value_parser() { in value_parser() function 369 .value_parser(|s: &str| -> Result<String, String> { in value_parser() 397 .value_parser(clap::value_parser!(i32)), in value_parser_output() 414 .value_parser(|s: &str| -> Result<String, String> { in value_parser_invalid()
|
D | default_vals.rs | 7 use clap::{arg, value_parser, Arg, ArgAction, Command}; 47 .value_parser(clap::builder::NonEmptyStringValueParser::new()), in opt_without_value_fail() 620 .value_parser(value_parser!(OsString)) in default_value_ifs_os() 626 .value_parser(value_parser!(OsString)) in default_value_ifs_os() 806 .value_parser(["one", "two"]) in default_values_are_possible_values() 822 .value_parser(clap::value_parser!(u32)) in invalid_default_values() 835 .value_parser(clap::value_parser!(u32)) in valid_delimited_default_values() 852 .value_parser(clap::value_parser!(u32)) in invalid_delimited_default_values()
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_03_relations.rs | 3 use clap::{arg, command, value_parser, ArgAction, ArgGroup}; 23 .value_parser(value_parser!(PathBuf)) in main() 28 .value_parser(value_parser!(PathBuf)) in main() 35 .value_parser(value_parser!(PathBuf)) in main()
|
D | 04_04_custom.rs | 4 use clap::{arg, command, value_parser, ArgAction}; 16 .arg(arg!([INPUT_FILE] "some regular input").value_parser(value_parser!(PathBuf))) in main() 19 .value_parser(value_parser!(PathBuf)), in main() 23 .arg(arg!(config: -c <CONFIG>).value_parser(value_parser!(PathBuf))); in main()
|
D | 03_05_default_values.rs | 1 use clap::{arg, command, value_parser}; 7 .value_parser(value_parser!(u16)) in main()
|
D | 04_02_parse.rs | 1 use clap::{arg, command, value_parser}; 8 .value_parser(value_parser!(u16).range(1..)), in main()
|
D | 05_01_assert.rs | 1 use clap::{arg, command, value_parser}; 18 .value_parser(value_parser!(usize)), in cmd()
|
D | 01_quick.rs | 3 use clap::{arg, command, value_parser, ArgAction, Command}; 14 .value_parser(value_parser!(PathBuf)), in main()
|
D | 04_01_enum.rs | 1 use clap::{arg, builder::PossibleValue, command, value_parser, ValueEnum}; 50 .value_parser(value_parser!(Mode)), in main()
|
/third_party/rust/crates/clap/clap_bench/benches/ |
D | 05_ripgrep.rs | 6 use clap::{value_parser, Arg, ArgAction, Command}; 348 .value_parser(["never", "auto", "always", "ansi"]), in cmd() 383 .value_parser(value_parser!(usize)), in cmd() 390 .value_parser(value_parser!(usize)), in cmd() 397 .value_parser(value_parser!(usize)), in cmd() 426 .value_parser(value_parser!(usize)), in cmd() 432 .value_parser(value_parser!(usize)), in cmd() 457 .value_parser(value_parser!(usize)), in cmd()
|
/third_party/rust/crates/clap/examples/ |
D | escaped-positional.rs | 1 use clap::{arg, command, value_parser, ArgAction}; 6 .arg(arg!(pea: -p <PEAR>).value_parser(value_parser!(String))) in main() 12 .value_parser(value_parser!(String)), in main()
|
D | multicall-busybox.rs | 4 use clap::{value_parser, Arg, ArgAction, Command}; 28 .value_parser(value_parser!(PathBuf)), in main()
|
/third_party/python/Lib/email/ |
D | headerregistry.py | 263 value_parser = staticmethod(parser.get_unstructured) variable in UnstructuredHeader 267 kwds['parse_tree'] = cls.value_parser(value) 290 value_parser = staticmethod(parser.get_unstructured) variable in DateHeader 311 kwds['parse_tree'] = cls.value_parser(kwds['decoded']) 332 def value_parser(value): member in AddressHeader 342 kwds['parse_tree'] = address_list = cls.value_parser(value) 363 kwds['parse_tree'] = cls.value_parser(kwds['decoded']) 406 value_parser = staticmethod(parser.parse_mime_version) variable in MIMEVersionHeader 410 kwds['parse_tree'] = parse_tree = cls.value_parser(value) 448 kwds['parse_tree'] = parse_tree = cls.value_parser(value) [all …]
|
/third_party/rust/crates/cxx/gen/cmd/src/ |
D | app.rs | 126 .value_parser(ValueParser::path_buf()) in arg_input() 139 .value_parser(move |arg: &str| match cfg::parse.parse_str(arg) { in arg_cfg() 167 .value_parser(ValueParser::string()) in arg_cxx_impl_annotations() 195 .value_parser(ValueParser::string()) in arg_include() 208 .value_parser(ValueParser::path_buf()) in arg_output()
|
/third_party/rust/crates/clap/clap_mangen/tests/ |
D | common.rs | 45 .arg(clap::Arg::new("choice").value_parser(["first", "second"])) in feature_sample_command() 155 .value_parser([clap::builder::PossibleValue::new( in sub_subcommands_command() 170 .value_parser(["bash", "fish", "zsh"]), in value_hint_command() 290 .value_parser(["bash", "fish", "zsh"]), in possible_values_command() 296 .value_parser([ in possible_values_command() 308 .value_parser([ in possible_values_command()
|
/third_party/rust/crates/clap/clap_complete/examples/ |
D | completion.rs | 15 use clap::{value_parser, Arg, Command, ValueHint}; 92 .value_parser(value_parser!(Shell)), in build_cli()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | args.rs | 240 let value_parser = item.value_parser(&field.ty); in gen_augment() localVariable 255 #value_parser in gen_augment() 263 #value_parser in gen_augment() 272 #value_parser in gen_augment() 278 #value_parser in gen_augment() 289 #value_parser in gen_augment() 295 #value_parser in gen_augment() 304 #value_parser in gen_augment() 318 #value_parser in gen_augment()
|
/third_party/rust/crates/clap/examples/tutorial_derive/ |
D | 04_02_parse.rs | 7 #[arg(value_parser = clap::value_parser!(u16).range(1..))]
|