mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
Fixed error in doc test
This commit is contained in:
parent
bc94d11b03
commit
eabfa091bc
3 changed files with 2 additions and 3 deletions
|
@ -298,7 +298,6 @@ impl App {
|
||||||
/// .index(1)
|
/// .index(1)
|
||||||
/// .help("Configuration file to use")))
|
/// .help("Configuration file to use")))
|
||||||
/// // Additional subcommand configuration goes here, such as arguments...
|
/// // Additional subcommand configuration goes here, such as arguments...
|
||||||
/// )
|
|
||||||
/// # .get_matches();
|
/// # .get_matches();
|
||||||
/// ```
|
/// ```
|
||||||
pub fn subcommand(mut self, subcmd: App) -> App {
|
pub fn subcommand(mut self, subcmd: App) -> App {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
//! After defining a list of possible valid arguments you get a list of matches that the user supplied at runtime. You can then use this list to
|
//! After defining a list of possible valid arguments you get a list of matches that the user supplied at runtime. You can then use this list to
|
||||||
//! determine the functioning of your program.
|
//! determine the functioning of your program.
|
||||||
//!
|
//!
|
||||||
//! # Example
|
//! Example:
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use clap::{Arg, App, SubCommand};
|
//! use clap::{Arg, App, SubCommand};
|
||||||
|
|
Loading…
Reference in a new issue