/third_party/rust/crates/clap/tests/builder/ |
D | groups.rs | 1 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgGroup, Command, Id}; 10 .group(ArgGroup::new("req").args(["flag", "color"]).required(true)) in required_group_missing_arg() 24 .group(ArgGroup::new("req").args(["flg", "color"]).required(true)) in non_existing_arg() 35 .group(ArgGroup::new("req").args(["flag"]).required(true)) in unique_group_name() 36 .group(ArgGroup::new("req").args(["color"]).required(true)) in unique_group_name() 55 .group(ArgGroup::new("a")) in arg_group_new_of_arg_name() 64 .group(ArgGroup::new("grp").args(["hostname", "color"])) in group_single_value() 79 .group(ArgGroup::new("grp").args(["hostname", "color", "flag"])) in group_empty() 95 ArgGroup::new("grp") in group_required_flags_empty() 111 .group(ArgGroup::new("grp").args(["hostname", "color", "flag"])) in group_multi_value_single_arg() [all …]
|
D | conflicts.rs | 1 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgGroup, Command}; 80 .group(clap::ArgGroup::new("test").arg("foo")) in not_exclusive_with_group() 108 .group(ArgGroup::new("gr").arg("some").arg("other")) in arg_conflicts_with_group() 142 .group(clap::ArgGroup::new("gr").multiple(true)) in arg_conflicts_with_group_with_multiple_sources() 175 ArgGroup::new("gr") in group_conflicts_with_arg() 213 .group(ArgGroup::new("gr").required(true).arg("some").arg("other")) in arg_conflicts_with_required_group() 242 .group(ArgGroup::new("gr").arg("some").arg("other")) in arg_conflicts_with_group_with_required_memeber() 272 ArgGroup::new("gr") in required_group_conflicts_with_arg() 307 .group(ArgGroup::new("gr").arg("some").arg("other")) in get_arg_conflicts_with_group() 648 .group(ArgGroup::new("one").conflicts_with("opt")) in group_conflicts_with_default_arg()
|
D | require.rs | 2 use clap::{arg, error::ErrorKind, Arg, ArgAction, ArgGroup, Command}; 150 .group(ArgGroup::new("gr").required(true).arg("some").arg("other")) in group_required() 163 .group(ArgGroup::new("gr").required(true).arg("some").arg("other")) in group_required_2() 177 .group(ArgGroup::new("gr").required(true).arg("some").arg("other")) in group_required_3() 191 .group(ArgGroup::new("gr").arg("some").arg("other")) in arg_require_group() 208 .group(ArgGroup::new("gr").arg("some").arg("other")) in arg_require_group_2() 227 .group(ArgGroup::new("gr").arg("some").arg("other")) in arg_require_group_3() 1030 ArgGroup::new("test_group") in require_eq_filtered_group() 1339 .group(ArgGroup::new("one").arg("opt").requires("flag")) in group_requires_with_default_value() 1467 ArgGroup::new("either_or_both") in required_require_with_group_shows_flag()
|
D | utils.rs | 6 use clap::{arg, Arg, ArgAction, ArgGroup, Command};
|
D | default_vals.rs | 765 use clap::{Arg, ArgGroup, Command}; in required_groups_with_default_values() 769 .group(ArgGroup::new("group").args(["arg"]).required(true)); in required_groups_with_default_values()
|
D | help.rs | 3 use clap::{arg, builder::PossibleValue, error::ErrorKind, Arg, ArgAction, ArgGroup, Command}; 1872 .group(ArgGroup::new("group1") in issue_1487() 2243 ArgGroup::new("arg1") in issue_1794_usage()
|
/third_party/rust/crates/clap/src/builder/ |
D | arg_group.rs | 86 pub struct ArgGroup { struct 96 impl ArgGroup { argument 110 ArgGroup::default().id(id) in new() 498 impl ArgGroup { impl 512 impl From<&'_ ArgGroup> for ArgGroup { implementation 513 fn from(g: &ArgGroup) -> Self { in from() 524 let g = ArgGroup::new("test") in groups() 547 let g = ArgGroup::new("test") in test_from() 563 let g2 = ArgGroup::from(&g); in test_from() 573 foo(ArgGroup::new("test")) in arg_group_send_sync() [all …]
|
D | command.rs | 19 use crate::builder::{Arg, ArgGroup, ArgPredicate}; 102 groups: Vec<ArgGroup>, 330 pub fn group(mut self, group: impl Into<ArgGroup>) -> Self { in group() 358 pub fn groups(mut self, groups: impl IntoIterator<Item = impl Into<ArgGroup>>) -> Self { in groups() 3448 pub fn get_groups(&self) -> impl Iterator<Item = &ArgGroup> { in get_groups() 3869 let mut ag = ArgGroup::new(g); in _build_self() 4158 fn two_groups_of<F>(&self, condition: F) -> Option<(&ArgGroup, &ArgGroup)> in two_groups_of() argument 4160 F: Fn(&ArgGroup) -> bool, in two_groups_of() 4451 pub(crate) fn find_group(&self, group_id: &Id) -> Option<&ArgGroup> { in find_group() argument
|
D | mod.rs | 28 pub use arg_group::ArgGroup;
|
/third_party/rust/crates/clap/examples/ |
D | find.rs | 3 use clap::{arg, command, ArgGroup, ArgMatches, Command}; 13 .group(ArgGroup::new("tests").multiple(true)) in cli() 19 .group(ArgGroup::new("operators").multiple(true)) in cli()
|
/third_party/rust/crates/clap/examples/tutorial_derive/ |
D | 04_03_relations.rs | 1 use clap::{ArgGroup, Parser}; 6 ArgGroup::new("vers")
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_03_relations.rs | 3 use clap::{arg, command, value_parser, ArgAction, ArgGroup}; 15 ArgGroup::new("vers") in main()
|
/third_party/libphonenumber/migrator/src/main/java/com/google/phonenumbers/migrator/ |
D | CommandLineMain.java | 28 import picocli.CommandLine.ArgGroup; 42 @ArgGroup(multiplicity = "1") 63 @ArgGroup()
|
/third_party/rust/crates/clap/tests/derive/ |
D | issues.rs | 5 use clap::{ArgGroup, Args, Parser, Subcommand}; 10 #[command(group = ArgGroup::new("verb").required(true).multiple(true))] in issue_151_groups_within_subcommands()
|
D | non_literal_attributes.rs | 23 #[command(group = clap::ArgGroup::new("foo"))]
|
/third_party/rust/crates/clap/clap_bench/benches/ |
D | 06_rustup.rs | 5 use clap::{Arg, ArgAction, ArgGroup, Command}; 270 .group(ArgGroup::new("page").args(["book", "std"])), in build_cli()
|
/third_party/rust/crates/clap/src/ |
D | lib.rs | 103 pub use crate::builder::{Arg, ArgGroup};
|
/third_party/rust/crates/clap/src/parser/ |
D | validator.rs | 3 use crate::builder::{Arg, ArgGroup, ArgPredicate, Command, PossibleValue}; 549 fn gather_group_direct_conflicts(group: &ArgGroup) -> Vec<Id> { in gather_group_direct_conflicts()
|
/third_party/rust/crates/clap/ |
D | CHANGELOG.md | 237 - `Arg::exclusive(true)` should not be exclusive with the argument's own `ArgGroup` 250 - Only put `ArgGroup` in `ArgMatches` when explicitly specified, fixing derives handling of option-… 293 - *(derive)* Populate implicit ArgGroup (#3165) 519 - Removed lifetimes from `Command`, `Arg`, `ArgGroup`, and `PossibleValue`, assuming `'static`. `s… 537 - *(derive)* When deriving `Args`, and `ArgGroup` is created using the type's name, reserving it fo… 564 - Various `Arg`, `Command`, and `ArgGroup` calls were switched from accepting `&[]` to `[]` via `In… 613 - Can now pass runtime generated data to `Command`, `Arg`, `ArgGroup`, `PossibleValue`, etc without… 926 - Members of a mutually exclusive `ArgGroup` override `Arg::required`, making the behavior consist… 1016 …*(builder)* `clap::Arg::id` and `clap::ArgGroup::id` are now preferred over `clap::Arg::name` and … 1335 - Replaced `ArgGroup::from(BTreeMap)` to `ArgGroup::from(yaml)` [all …]
|
/third_party/rust/crates/clap/clap_complete/src/ |
D | dynamic.rs | 20 #[command(group = clap::ArgGroup::new("complete").multiple(true).conflicts_with("register"))]
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | args.rs | 406 clap::ArgGroup::new(#group_id) in gen_augment()
|