Home
last modified time | relevance | path

Searched refs:Cli (Results 1 – 25 of 26) sorted by relevance

12

/third_party/rust/crates/clap/tests/derive/
Dissues.rs19 struct Cli { in issue_151_groups_within_subcommands() struct
24 assert!(Cli::try_parse_from(["test"]).is_err()); in issue_151_groups_within_subcommands()
25 assert!(Cli::try_parse_from(["test", "--foo=v1"]).is_ok()); in issue_151_groups_within_subcommands()
26 assert!(Cli::try_parse_from(["test", "--bar=v2"]).is_ok()); in issue_151_groups_within_subcommands()
27 assert!(Cli::try_parse_from(["test", "--zebra=v3"]).is_err()); in issue_151_groups_within_subcommands()
28 assert!(Cli::try_parse_from(["test", "--foo=v1", "--bar=v2"]).is_ok()); in issue_151_groups_within_subcommands()
/third_party/rust/crates/clap/examples/tutorial_derive/
D04_04_custom.rs6 struct Cli { struct
35 let cli = Cli::parse(); in main() argument
45 let mut cmd = Cli::command(); in main()
61 let mut cmd = Cli::command(); in main()
82 let mut cmd = Cli::command(); in main()
D05_01_assert.rs5 struct Cli { struct
11 let cli = Cli::parse(); in main() argument
19 Cli::command().debug_assert() in verify_cli()
D03_03_positional_mult.rs5 struct Cli { struct
10 let cli = Cli::parse(); in main() argument
D03_03_positional.rs5 struct Cli { struct
10 let cli = Cli::parse(); in main() argument
D03_05_default_values.rs5 struct Cli { struct
11 let cli = Cli::parse(); in main() argument
D03_01_flag_bool.rs5 struct Cli { struct
11 let cli = Cli::parse(); in main() argument
D03_02_option_mult.rs5 struct Cli { struct
11 let cli = Cli::parse(); in main() argument
D03_02_option.rs5 struct Cli { struct
11 let cli = Cli::parse(); in main() argument
D04_02_parse.rs5 struct Cli { struct
12 let cli = Cli::parse(); in main() argument
D03_01_flag_count.rs5 struct Cli { struct
11 let cli = Cli::parse(); in main() argument
D02_crate.rs5 struct Cli { struct
13 let cli = Cli::parse(); in main() argument
D02_app_settings.rs6 struct Cli { struct
14 let cli = Cli::parse(); in main() argument
D02_apps.rs8 struct Cli { struct
16 let cli = Cli::parse(); in main() argument
D03_04_subcommands.rs6 struct Cli { struct
18 let cli = Cli::parse(); in main() argument
D04_01_enum.rs5 struct Cli { struct
22 let cli = Cli::parse(); in main() argument
D03_04_subcommands_alt.rs6 struct Cli { struct
23 let cli = Cli::parse(); in main() argument
D04_02_validate.rs7 struct Cli { struct
14 let cli = Cli::parse(); in main() argument
D01_quick.rs7 struct Cli { struct
34 let cli = Cli::parse(); in main() argument
D04_03_relations.rs10 struct Cli { struct
40 let cli = Cli::parse(); in main() argument
/third_party/rust/crates/clap/examples/derive_ref/
Dinterop_tests.md112 Cli {
125 Cli {
155 Cli {
169 Cli {
200 Cli {
213 Cli {
226 Cli {
Dhand_subcommand.rs69 struct Cli { struct
77 let args = Cli::parse(); in main() argument
Dflatten_hand_args.rs81 struct Cli { struct
89 let args = Cli::parse(); in main() argument
/third_party/rust/crates/clap/examples/
Descaped-positional-derive.rs5 struct Cli { struct
17 let args = Cli::parse(); in main() argument
Dgit-derive.rs11 struct Cli { struct
101 let args = Cli::parse(); in main()

12