diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-19 09:26:03 +0000 |
commit | 9918693037dce8aa4bb6f08741b6812923486c18 (patch) | |
tree | 21d2b40bec7e6a7ea664acee056eb3d08e15a1cf /vendor/clap/src/_derive | |
parent | Releasing progress-linux version 1.75.0+dfsg1-5~progress7.99u1. (diff) | |
download | rustc-9918693037dce8aa4bb6f08741b6812923486c18.tar.xz rustc-9918693037dce8aa4bb6f08741b6812923486c18.zip |
Merging upstream version 1.76.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/clap/src/_derive')
-rw-r--r-- | vendor/clap/src/_derive/mod.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/clap/src/_derive/mod.rs b/vendor/clap/src/_derive/mod.rs index 0c479a236..2ad242d59 100644 --- a/vendor/clap/src/_derive/mod.rs +++ b/vendor/clap/src/_derive/mod.rs @@ -189,6 +189,9 @@ //! [`Subcommand`][crate::Subcommand]) //! - When `Option<T>`, the subcommand becomes optional //! +//! See [Configuring the Parser][_tutorial::chapter_1] and +//! [Subcommands][_tutorial::chapter_2#subcommands] from the tutorial. +//! //! ### ArgGroup Attributes //! //! These correspond to the [`ArgGroup`][crate::ArgGroup] which is implicitly created for each @@ -203,6 +206,12 @@ //! - `skip [= <expr>]`: Ignore this field, filling in with `<expr>` //! - Without `<expr>`: fills the field with `Default::default()` //! +//! Note: +//! - For `struct`s, [`multiple = true`][crate::ArgGroup::multiple] is implied +//! - `enum` support is tracked at [#2621](https://github.com/clap-rs/clap/issues/2621) +//! +//! See [Argument Relations][_tutorial::chapter_3#argument-relations] from the tutorial. +//! //! ### Arg Attributes //! //! These correspond to a [`Arg`][crate::Arg]. @@ -252,12 +261,17 @@ //! - Requires field arg to be of type `Vec<T>` and `T` to implement `std::convert::Into<OsString>` or `#[arg(value_enum)]` //! - `<expr>` must implement `IntoIterator<T>` //! +//! See [Adding Arguments][_tutorial::chapter_2] and [Validation][_tutorial::chapter_3] from the +//! tutorial. +//! //! ### ValueEnum Attributes //! //! - `rename_all = <string_literal>`: Override default field / variant name case conversion for [`PossibleValue::new`][crate::builder::PossibleValue] //! - When not present: `"kebab-case"` //! - Available values: `"camelCase"`, `"kebab-case"`, `"PascalCase"`, `"SCREAMING_SNAKE_CASE"`, `"snake_case"`, `"lower"`, `"UPPER"`, `"verbatim"` //! +//! See [Enumerated values][_tutorial::chapter_3#enumerated-values] from the tutorial. +//! //! ### Possible Value Attributes //! //! These correspond to a [`PossibleValue`][crate::builder::PossibleValue]. |