mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +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")]
|
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_bool.md")]
|
||||||
//!
|
//!
|
||||||
//! Note that the default [`ArgAction`][crate::ArgAction] for a `bool` field is
|
//! Note that the default [`ArgAction`][crate::ArgAction] for a `bool` field is
|
||||||
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
|
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple flags, use
|
||||||
//! [`Append`][crate::ArgAction::Append]:
|
//! [`Count`][crate::ArgAction::Count]:
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_count.rs")]
|
#![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")]
|
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_bool.md")]
|
||||||
//!
|
//!
|
||||||
//! Note that the default [`ArgAction`][crate::ArgAction]` for a `bool` field is
|
//! To accept multiple flags, use [`Count`][crate::ArgAction::Count]:
|
||||||
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
|
|
||||||
//! [`Append`][crate::ArgAction::Append]:
|
|
||||||
//!
|
//!
|
||||||
//! ```rust
|
//! ```rust
|
||||||
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_count.rs")]
|
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_count.rs")]
|
||||||
|
|
Loading…
Reference in a new issue