mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
docs(derive): Clarify opt-out of special type behavior
Inspired by #4808
This commit is contained in:
parent
8fc65e28b6
commit
06d190751a
1 changed files with 3 additions and 0 deletions
|
@ -291,6 +291,9 @@
|
|||
//!
|
||||
//! Notes:
|
||||
//! - For custom type behavior, you can override the implied attributes/settings and/or set additional ones
|
||||
//! - To completel opt-out of implied behavior, you can refer to the type by another means, like
|
||||
//! using `std::vec::Vec` instead of `Vec`. For improving this, see
|
||||
//! [#4626](https://github.com/clap-rs/clap/issues/4626).
|
||||
//! - `Option<Vec<T>>` will be `None` instead of `vec![]` if no arguments are provided.
|
||||
//! - This gives the user some flexibility in designing their argument, like with `num_args(0..)`
|
||||
//!
|
||||
|
|
Loading…
Add table
Reference in a new issue