mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
docs(tutorial): Provide next steps
This is particularly to help call attention to builder methods as attributes (#4090).
This commit is contained in:
parent
c2e6f1b790
commit
7370c63caf
2 changed files with 24 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
//! 3. [Argument Relations](#argument-relations)
|
||||
//! 4. [Custom Validation](#custom-validation)
|
||||
//! 5. [Testing](#testing)
|
||||
//! 6. [Next Steps](#next-steps)
|
||||
//!
|
||||
//! See also
|
||||
//! - [FAQ: When should I use the builder vs derive APIs?][crate::_faq#when-should-i-use-the-builder-vs-derive-apis]
|
||||
|
@ -232,3 +233,18 @@
|
|||
//! ```rust,no_run
|
||||
#![doc = include_str!("../../examples/tutorial_derive/05_01_assert.rs")]
|
||||
//! ```
|
||||
//!
|
||||
//! ## Next Steps
|
||||
//!
|
||||
//! - [Cookbook][crate::_cookbook] for application-focused examples
|
||||
//! - Explore more features in the [Derive reference][super]
|
||||
//! - See also [`Command`], [`Arg`], [`ArgGroup`], and [`PossibleValue`] builder functions which
|
||||
//! can be used as attributes
|
||||
//!
|
||||
//! For support, see [Discussions](https://github.com/clap-rs/clap/discussions)
|
||||
|
||||
#![allow(unused_imports)]
|
||||
use crate::builder::Arg;
|
||||
use crate::builder::ArgGroup;
|
||||
use crate::builder::Command;
|
||||
use crate::builder::PossibleValue;
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
//! 3. [Argument Relations](#argument-relations)
|
||||
//! 4. [Custom Validation](#custom-validation)
|
||||
//! 5. [Testing](#testing)
|
||||
//! 6. [Next Steps](#next-steps)
|
||||
//!
|
||||
//! See also
|
||||
//! - [FAQ: When should I use the builder vs derive APIs?][crate::_faq#when-should-i-use-the-builder-vs-derive-apis]
|
||||
|
@ -225,3 +226,10 @@
|
|||
//! ```rust,no_run
|
||||
#![doc = include_str!("../examples/tutorial_builder/05_01_assert.rs")]
|
||||
//! ```
|
||||
//!
|
||||
//! ## Next Steps
|
||||
//!
|
||||
//! - [Cookbook][crate::_cookbook] for application-focused examples
|
||||
//! - Explore more features in the [API reference][super]
|
||||
//!
|
||||
//! For support, see [Discussions](https://github.com/clap-rs/clap/discussions)
|
||||
|
|
Loading…
Reference in a new issue