mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
docs(derive): Draw more attention to derive feature
This commit is contained in:
parent
a0e6bdc50b
commit
c2e6f1b790
2 changed files with 11 additions and 1 deletions
|
@ -31,7 +31,12 @@
|
|||
//! ## Quick Start
|
||||
//!
|
||||
//! You can create an application declaratively with a `struct` and some
|
||||
//! attributes. **This requires enabling the [`derive` feature flag][crate::_features].**
|
||||
//! attributes.
|
||||
//!
|
||||
//! First, ensure `clap` is available with the [`derive` feature flag][crate::_features]:
|
||||
//! ```console
|
||||
//! $ cargo add clap --features derive
|
||||
//! ```
|
||||
//!
|
||||
//! ```rust
|
||||
#![doc = include_str!("../../examples/tutorial_derive/01_quick.rs")]
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
//!
|
||||
//! You can create an application with several arguments using usage strings.
|
||||
//!
|
||||
//! First, ensure `clap` is available:
|
||||
//! ```console
|
||||
//! $ cargo add clap
|
||||
//! ```
|
||||
//!
|
||||
//! ```rust
|
||||
#![doc = include_str!("../examples/tutorial_builder/01_quick.rs")]
|
||||
//! ```
|
||||
|
|
Loading…
Reference in a new issue