/external/rust/crates/clap/ |
D | CHANGELOG.md | 20 …5](https://github.com/clap-rs/clap/commit/922c64508389170c9c77f1c8a4e597d14d3ed2f0), closes [#1905… 24 * fixes versions referenced in the README ([d307466a](https://github.com/kbknapp/clap-rs/commit/d… 26 …er of examples to reduce confusion ([6e508ee0](https://github.com/kbknapp/clap-rs/commit/6e508ee09… 30 …ps://github.com/kbknapp/clap-rs/commit/b57ee94609da3ddc897286cfba968f26ff961491), closes [#1155](h… 34 * As of this release, `clap` requires `rustc 1.36.0` or greater. 41 * Stephen Oats is now a sponsor \o/ ([823457c0](https://github.com/kbknapp/clap-rs/commit/823457c… 42 …ett's info in the sponsor document ([24cb5740](https://github.com/kbknapp/clap-rs/commit/24cb57409… 46 * **Completions:** adds completion support for Elvish. ([e9d0562a](https://github.com/kbknapp/clap… 51 * **arg_matches.rs:** add Debug implementations ([47192b7a](https://github.com/kbknapp/clap-rs/com… 52 * **macros:** Support shorthand syntax for ArgGroups ([df9095e7](https://github.com/kbknapp/clap-r… [all …]
|
D | Cargo.toml | 14 name = "clap" 17 exclude = ["examples/*", "clap-test/*", "tests/*", "benches/*", "*.png", "clap-perf/*", "*.dot"] 19 homepage = "https://clap.rs/" 20 documentation = "https://docs.rs/clap/" 25 repository = "https://github.com/clap-rs/clap" 120 repository = "clap-rs/clap" 124 repository = "clap-rs/clap" 127 repository = "clap-rs/clap" 130 repository = "clap-rs/clap" 136 repository = "clap-rs/clap"
|
D | README.md | 1 clap chapter 4 …clap.svg)](https://crates.io/crates/clap) [![Crates.io](https://img.shields.io/crates/d/clap.svg)]… 6 …ux: [![Build Status](https://travis-ci.org/clap-rs/clap.svg?branch=master)](https://travis-ci.org/… 7 …33dn31nhv36/branch/master?svg=true)](https://ci.appveyor.com/project/kbknapp/clap-rs/branch/master) 13 * [documentation](https://docs.rs/clap/) 14 * [website](https://clap.rs/) 44 …clap` is used to parse *and validate* the string of command line arguments provided by a user at r… 46 …clap` provides many things 'for free' (with no configuration) including the traditional version an… 48 … `clap` parses the user provided string of arguments, it returns the matches along with any applic… 52 For a full FAQ and more in depth details, see [the wiki page](https://github.com/clap-rs/clap/wiki/… [all …]
|
D | SPONSORS.md | 1 Below is a list of sponsors for the clap-rs project 3 …in becoming a sponsor for this project please our [sponsorship page](https://clap.rs/sponsorship/). 7 …clap.rs/wp-content/uploads/2017/10/noelia_sm-1.png" width="117">](https://noeliasg.com/about/) | … 14 | [<img alt="Rob Tsuk" src="https://clap.rs/wp-content/uploads/2017/10/robtsuk_sm.png" width="117">…
|
D | METADATA | 1 name: "clap" 6 value: "https://crates.io/crates/clap" 10 value: "https://static.crates.io/crates/clap/clap-2.33.3.crate"
|
/external/rust/crates/structopt/tests/ |
D | options.rs | 20 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a42"])) in required_option() 24 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a", "42"])) in required_option() 28 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--arg", "42"])) in required_option() 30 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in required_option() 31 assert!(Opt::clap() in required_option() 45 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a42"])) in optional_option() 49 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in optional_option() 51 assert!(Opt::clap() in optional_option() 65 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a24"])) in option_with_default() 69 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in option_with_default() [all …]
|
D | flags.rs | 21 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in unique_flag() 25 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a"])) in unique_flag() 29 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--alice"])) in unique_flag() 31 assert!(Opt::clap().get_matches_from_safe(&["test", "-i"]).is_err()); in unique_flag() 32 assert!(Opt::clap() in unique_flag() 35 assert!(Opt::clap() in unique_flag() 38 assert!(Opt::clap() in unique_flag() 55 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in multiple_flag() 59 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a"])) in multiple_flag() 63 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a", "-a"])) in multiple_flag() [all …]
|
D | argument_naming.rs | 12 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "command", "0"])) in test_single_word_enum_variant_is_default_renamed_into_kebab_case() 25 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "first-command", "0"])) in test_multi_word_enum_variant_is_renamed() 40 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo-option"])) in test_standalone_long_generates_kebab_case() 54 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_custom_long_overwrites_default_name() 68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_standalone_long_uses_previous_defined_custom_name() 82 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo-option"])) in test_standalone_long_ignores_afterwards_defined_custom_name() 97 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-f"])) in test_standalone_short_generates_kebab_case() 111 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-o"])) in test_custom_short_overwrites_default_name() 125 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-o"])) in test_standalone_short_uses_previous_defined_custom_name() 139 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-f"])) in test_standalone_short_ignores_afterwards_defined_custom_name() [all …]
|
D | non_literal_attributes.rs | 9 use structopt::clap::AppSettings; 46 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1"])) in test_slice() 55 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--level", "1"])) in test_slice() 64 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--set-level", "1"])) in test_slice() 73 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--lvl", "1"])) in test_slice() 86 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1", "file"])) in test_multi_args() 96 &Opt::clap().get_matches_from(&["test", "-l", "1", "--values", "1", "--", "FILE"]), in test_multi_args() 103 let result = Opt::clap().get_matches_from_safe(&["test", "-l", "1", "--", "FILE"]); in test_multi_args_fail() 116 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1", "--x=1"])) in test_bool() 118 let result = Opt::clap().get_matches_from_safe(&["test", "-l", "1", "--x", "1"]); in test_bool() [all …]
|
D | issues.rs | 10 use structopt::{clap::ArgGroup, StructOpt}; in issue_151() 27 assert!(Cli::clap().get_matches_from_safe(&["test"]).is_err()); in issue_151() 28 assert!(Cli::clap() in issue_151() 31 assert!(Cli::clap() in issue_151() 34 assert!(Cli::clap() in issue_151() 37 assert!(Cli::clap() in issue_151() 44 use structopt::{clap::AppSettings, StructOpt}; in issue_289() 59 assert!(Args::clap() in issue_289() 62 assert!(Args::clap() in issue_289() 65 assert!(Args::clap() in issue_289() [all …]
|
D | subcommands.rs | 42 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "fetch", "--all", "origin"])) in test_fetch() 50 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "fetch", "-f", "origin"])) in test_fetch() 61 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add"])) in test_add() 68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add", "-i", "-v"])) in test_add() 74 let result = Opt::clap().get_matches_from_safe(&["test", "badcmd", "-i", "-v"]); in test_no_parse() 77 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--badoption"]); in test_no_parse() 80 let result = Opt::clap().get_matches_from_safe(&["test"]); in test_no_parse() 97 Opt2::from_clap(&Opt2::clap().get_matches_from(&["test", "do-something", "blah"])) in test_hyphenated_subcommands() 112 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "add"])) in test_null_commands() 116 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "init"])) in test_null_commands() [all …]
|
D | nested-subcommands.rs | 39 let result = Opt::clap().get_matches_from_safe(&["test"]); in test_no_cmd() 48 Opt2::from_clap(&Opt2::clap().get_matches_from(&["test"])) in test_no_cmd() 60 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-vvv", "fetch"])) in test_fetch() 68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--force", "fetch"])) in test_fetch() 80 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add"])) in test_add() 88 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-vv", "add"])) in test_add() 94 let result = Opt::clap().get_matches_from_safe(&["test", "badcmd"]); in test_badinput() 96 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--verbose"]); in test_badinput() 98 let result = Opt::clap().get_matches_from_safe(&["test", "--badopt", "add"]); in test_badinput() 100 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--badopt"]); in test_badinput() [all …]
|
D | custom-string-parsers.rs | 47 PathOpt::from_clap(&PathOpt::clap().get_matches_from(&[ in test_path_opt_simple() 69 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "5"])) in test_parse_hex() 73 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "abcdef"])) in test_parse_hex() 76 let err = HexOpt::clap() in test_parse_hex() 117 &NoOpOpt::clap().get_matches_from(&["test", "-a=?", "-b=?", "-c=?", "-d=?"]) in test_every_custom_parser() 146 DefaultedOpt::from_clap(&DefaultedOpt::clap().get_matches_from(&[ in test_parser_with_default_value() 193 Occurrences::from_clap(&Occurrences::clap().get_matches_from(&[ in test_parser_occurrences() 224 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in test_custom_bool() 225 assert!(Opt::clap().get_matches_from_safe(&["test", "-d"]).is_err()); in test_custom_bool() 226 assert!(Opt::clap() in test_custom_bool() [all …]
|
D | arguments.rs | 9 use structopt::clap; 19 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in required_argument() 20 assert!(Opt::clap() in required_argument() 33 assert!(Opt::clap() in optional_argument() 47 assert!(Opt::clap() in argument_with_default() 83 clap::ErrorKind::ValueValidation, in arguments_safe()
|
D | utils.rs | 7 <T as StructOpt>::clap().write_help(&mut output).unwrap(); in get_help() 18 <T as StructOpt>::clap() in get_long_help() 30 let output = <T as StructOpt>::clap() in get_subcommand_long_help()
|
/external/rust/crates/structopt/src/ |
D | lib.rs | 1066 pub use clap; 1077 fn clap<'a, 'b>() -> clap::App<'a, 'b>; in clap() method 1082 fn from_clap(matches: &clap::ArgMatches<'_>) -> Self; in from_clap() 1090 Self::from_clap(&Self::clap().get_matches()) in from_args() 1096 fn from_args_safe() -> Result<Self, clap::Error> in from_args_safe() 1100 Self::clap() in from_args_safe() 1116 Self::from_clap(&Self::clap().get_matches_from(iter)) in from_iter() 1127 fn from_iter_safe<I>(iter: I) -> Result<Self, clap::Error> in from_iter_safe() 1133 Ok(Self::from_clap(&Self::clap().get_matches_from_safe(iter)?)) in from_iter_safe() 1140 fn augment_clap<'a, 'b>(app: clap::App<'a, 'b>) -> clap::App<'a, 'b> { in augment_clap() [all …]
|
/external/rust/crates/structopt/ |
D | Cargo.toml.orig | 9 keywords = ["clap", "cli", "derive", "docopt"] 15 default = ["clap/default"] 16 suggestions = ["clap/suggestions"] 17 color = ["clap/color"] 18 wrap_help = ["clap/wrap_help"] 19 yaml = ["clap/yaml"] 20 lints = ["clap/lints"] 21 debug = ["clap/debug"] 22 no_cargo = ["clap/no_cargo"] 23 doc = ["clap/doc"] [all …]
|
D | Cargo.toml | 21 keywords = ["clap", "cli", "derive", "docopt"] 25 [dependencies.clap] 47 color = ["clap/color"] 48 debug = ["clap/debug"] 49 default = ["clap/default"] 50 doc = ["clap/doc"] 51 lints = ["clap/lints"] 52 no_cargo = ["clap/no_cargo"] 54 suggestions = ["clap/suggestions"] 55 wrap_help = ["clap/wrap_help"] [all …]
|
/external/rust/crates/clap/src/ |
D | lib.rs | 607 fn try_parse() -> Result<Self, clap::Error> { in try_parse() 612 fn try_parse_from<I, T>(argv: I) -> Result<Self, clap::Error> in try_parse_from() 624 fn into_app<'a, 'b>() -> clap::App<'a, 'b>; in into_app() 630 fn from_argmatches<'a>(matches: clap::ArgMatches<'a>) -> Self; in from_argmatches() 633 fn try_from_argmatches<'a>(matches: clap::ArgMatches<'a>) -> Result<Self, clap::Error>; in try_from_argmatches()
|
/external/rust/crates/structopt-derive/src/ |
D | lib.rs | 87 ::structopt::clap::AppSettings::SubcommandRequiredElseHelp in gen_augmentation() 132 #app_var.setting(::structopt::clap::AppSettings::SubcommandRequiredElseHelp) in gen_augmentation() 225 ::structopt::clap::Arg::with_name(#name) in gen_augmentation() 396 fn from_clap(matches: &::structopt::clap::ArgMatches) -> Self { in gen_from_clap() 415 quote!(::structopt::clap::App::new(#name)) in gen_clap() 426 fn clap<'a, 'b>() -> ::structopt::clap::App<'a, 'b> { in gen_clap_struct() 443 #app_var: ::structopt::clap::App<'a, 'b> in gen_augment_clap() 444 ) -> ::structopt::clap::App<'a, 'b> { in gen_augment_clap() 455 fn clap<'a, 'b>() -> ::structopt::clap::App<'a, 'b> { in gen_clap_enum() 457 .setting(::structopt::clap::AppSettings::SubcommandRequiredElseHelp); in gen_clap_enum() [all …]
|
/external/rust/crates/structopt/tests/ui/ |
D | raw.stderr | 3 …= help: if you meant to call `clap::Arg::raw()` method you should use bool literal, like `raw(true… 4 …= note: if you need to call `clap::Arg/App::case_insensitive` method you can do it like this: #[st… 13 …= help: if you meant to call `clap::Arg::raw()` method you should use bool literal, like `raw(true… 14 …= note: if you need to call `clap::Arg/App::requires_if` method you can do it like this: #[structo…
|
/external/rust/crates/bindgen/ |
D | Cargo.toml.orig | 40 required-features = ["clap"] 44 clap = "2" 51 clap = { version = "2", optional = true } 74 default = ["logging", "clap", "runtime", "which-rustfmt"]
|
D | Cargo.toml | 36 required-features = ["clap"] 47 [dependencies.clap] 91 [dev-dependencies.clap] 101 default = ["logging", "clap", "runtime", "which-rustfmt"]
|
D | Android.bp | 1 // This file is generated by cargo2android.py --run --dependencies --features=clap,runtime,which-ru… 53 "clap", 86 "clap", 116 // clap-2.33.3 "ansi_term,atty,color,default,strsim,suggestions,vec_map"
|
/external/rust/crates/structopt/examples/ |
D | gen_completions.rs | 9 use structopt::clap::Shell; 22 Opt::clap().gen_completions("structopt", Shell::Bash, "target"); in main()
|