mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +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};
|
||||||
|
|
|
@ -13,7 +13,7 @@ use argmatches::ArgMatches;
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use clap::{App, Arg, SubCommand};
|
/// # use clap::{App, Arg, SubCommand};
|
||||||
/// # let matches = App::new("myprog")
|
/// # let matches = App::new("myprog")
|
||||||
/// # .subcommand(
|
/// # .subcommand(
|
||||||
/// SubCommand::new("conifg")
|
/// SubCommand::new("conifg")
|
||||||
/// .about("Used for configuration")
|
/// .about("Used for configuration")
|
||||||
/// .arg(Arg::new("config_file")
|
/// .arg(Arg::new("config_file")
|
||||||
|
|
Loading…
Reference in a new issue