mirror of
https://github.com/clap-rs/clap
synced 2024-12-12 22:02:35 +00:00
parent
ec3fdc4a42
commit
59bf166183
2 changed files with 3 additions and 5 deletions
|
@ -116,8 +116,8 @@
|
|||
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_bool.md")]
|
||||
//!
|
||||
//! Note that the default [`ArgAction`][crate::ArgAction] for a `bool` field is
|
||||
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
|
||||
//! [`Append`][crate::ArgAction::Append]:
|
||||
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple flags, use
|
||||
//! [`Count`][crate::ArgAction::Count]:
|
||||
//!
|
||||
//! ```rust
|
||||
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_count.rs")]
|
||||
|
|
|
@ -110,9 +110,7 @@
|
|||
//! ```
|
||||
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_bool.md")]
|
||||
//!
|
||||
//! Note that the default [`ArgAction`][crate::ArgAction]` for a `bool` field is
|
||||
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
|
||||
//! [`Append`][crate::ArgAction::Append]:
|
||||
//! To accept multiple flags, use [`Count`][crate::ArgAction::Count]:
|
||||
//!
|
||||
//! ```rust
|
||||
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_count.rs")]
|
||||
|
|
Loading…
Reference in a new issue