Skip to content

Commit

Permalink
docs(derive): Clarify opt-out of special type behavior
Browse files Browse the repository at this point in the history
Inspired by #4808
  • Loading branch information
epage committed Mar 28, 2023
1 parent 8fc65e2 commit 06d1907
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/_derive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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..)`
//!
Expand Down

0 comments on commit 06d1907

Please sign in to comment.