Commit 59bf166 1 parent ec3fdc4 commit 59bf166 Copy full SHA for 59bf166
File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 116
116
#![ doc = include_str ! ( "../../examples/tutorial_derive/03_01_flag_bool.md" ) ]
117
117
//!
118
118
//! Note that the default [`ArgAction`][crate::ArgAction] for a `bool` field is
119
- //! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values , use
120
- //! [`Append `][crate::ArgAction::Append ]:
119
+ //! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple flags , use
120
+ //! [`Count `][crate::ArgAction::Count ]:
121
121
//!
122
122
//! ```rust
123
123
#![ doc = include_str ! ( "../../examples/tutorial_derive/03_01_flag_count.rs" ) ]
Original file line number Diff line number Diff line change 110
110
//! ```
111
111
#![ doc = include_str ! ( "../examples/tutorial_builder/03_01_flag_bool.md" ) ]
112
112
//!
113
- //! Note that the default [`ArgAction`][crate::ArgAction]` for a `bool` field is
114
- //! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
115
- //! [`Append`][crate::ArgAction::Append]:
113
+ //! To accept multiple flags, use [`Count`][crate::ArgAction::Count]:
116
114
//!
117
115
//! ```rust
118
116
#![ doc = include_str ! ( "../examples/tutorial_builder/03_01_flag_count.rs" ) ]
You can’t perform that action at this time.
0 commit comments