Home
last modified time | relevance | path

Searched refs:ArgGroup (Results 1 – 21 of 21) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
Dgroups.rs1 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 …]
Dconflicts.rs1 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()
Drequire.rs2 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()
Dutils.rs6 use clap::{arg, Arg, ArgAction, ArgGroup, Command};
Ddefault_vals.rs765 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()
Dhelp.rs3 use clap::{arg, builder::PossibleValue, error::ErrorKind, Arg, ArgAction, ArgGroup, Command};
1849 .group(ArgGroup::new("group1") in issue_1487()
2220 ArgGroup::new("arg1") in issue_1794_usage()
/third_party/rust/crates/clap/src/builder/
Darg_group.rs86 pub struct ArgGroup { struct
96 impl ArgGroup { argument
110 ArgGroup::default().id(id) in new()
498 impl ArgGroup { implementation
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 …]
Dmod.rs28 pub use arg_group::ArgGroup;
Dcommand.rs19 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
/third_party/rust/crates/clap/examples/
Dfind.rs3 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/
D04_03_relations.rs1 use clap::{ArgGroup, Parser};
6 ArgGroup::new("vers")
/third_party/rust/crates/clap/examples/tutorial_builder/
D04_03_relations.rs3 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/
DCommandLineMain.java28 import picocli.CommandLine.ArgGroup;
42 @ArgGroup(multiplicity = "1")
63 @ArgGroup()
/third_party/rust/crates/clap/tests/derive/
Dissues.rs5 use clap::{ArgGroup, Args, Parser, Subcommand};
10 #[command(group = ArgGroup::new("verb").required(true).multiple(true))] in issue_151_groups_within_subcommands()
Dnon_literal_attributes.rs23 #[command(group = clap::ArgGroup::new("foo"))]
/third_party/rust/crates/clap/src/
Dlib.rs103 pub use crate::builder::{Arg, ArgGroup};
/third_party/rust/crates/clap/clap_bench/benches/
D06_rustup.rs5 use clap::{Arg, ArgAction, ArgGroup, Command};
270 .group(ArgGroup::new("page").args(["book", "std"])), in build_cli()
/third_party/rust/crates/clap/src/parser/
Dvalidator.rs3 use crate::builder::{Arg, ArgGroup, ArgPredicate, Command, PossibleValue};
552 fn gather_group_direct_conflicts(group: &ArgGroup) -> Vec<Id> { in gather_group_direct_conflicts()
/third_party/rust/crates/clap/
DCHANGELOG.md178 - `Arg::exclusive(true)` should not be exclusive with the argument's own `ArgGroup`
191 - Only put `ArgGroup` in `ArgMatches` when explicitly specified, fixing derives handling of option-…
234 - *(derive)* Populate implicit ArgGroup (#3165)
460 - Removed lifetimes from `Command`, `Arg`, `ArgGroup`, and `PossibleValue`, assuming `'static`. `s…
478 - *(derive)* When deriving `Args`, and `ArgGroup` is created using the type's name, reserving it fo…
505 - Various `Arg`, `Command`, and `ArgGroup` calls were switched from accepting `&[]` to `[]` via `In…
554 - Can now pass runtime generated data to `Command`, `Arg`, `ArgGroup`, `PossibleValue`, etc without…
867 - Members of a mutually exclusive `ArgGroup` override `Arg::required`, making the behavior consist…
957 …*(builder)* `clap::Arg::id` and `clap::ArgGroup::id` are now preferred over `clap::Arg::name` and …
1276 - Replaced `ArgGroup::from(BTreeMap)` to `ArgGroup::from(yaml)`
[all …]
/third_party/rust/crates/clap/clap_complete/src/
Ddynamic.rs20 #[command(group = clap::ArgGroup::new("complete").multiple(true).conflicts_with("register"))]
/third_party/rust/crates/clap/clap_derive/src/derives/
Dargs.rs405 clap::ArgGroup::new(#group_id) in gen_augment()