mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
tests: run or compile some currently ignored doc-tests
This commit is contained in:
parent
e151bfc2e8
commit
330a376a46
2 changed files with 4 additions and 3 deletions
|
@ -1051,7 +1051,7 @@ impl<'a, 'b> App<'a, 'b> {
|
|||
/// First, it helps if we separate out our `App` definition into a seperate file. Whether you
|
||||
/// do this as a function, or bare App definition is a matter of personal preference.
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```
|
||||
/// // src/cli.rs
|
||||
///
|
||||
/// use clap::{App, Arg, SubCommand};
|
||||
|
|
|
@ -149,7 +149,8 @@
|
|||
//!
|
||||
//! The following combines the previous two examples by using the less verbose `from_usage` methods and the performance of the Builder Pattern.
|
||||
//!
|
||||
//! ```ignore
|
||||
#![cfg_attr(not(feature="unstable"), doc=" ```ignore")]
|
||||
#![cfg_attr( feature="unstable" , doc=" ```no_run")]
|
||||
//! // (Full example with detailed comments in examples/01c_quick_example.rs)
|
||||
//! // Must be compiled with `--features unstable`
|
||||
//! //
|
||||
|
@ -286,7 +287,7 @@
|
|||
//!
|
||||
//! * Add the following to your `src/main.rs`
|
||||
//!
|
||||
//! ```ignore
|
||||
//! ```no_run
|
||||
//! extern crate clap;
|
||||
//! use clap::App;
|
||||
//!
|
||||
|
|
Loading…
Reference in a new issue