mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32: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)
|
||||
/// .help("Configuration file to use")))
|
||||
/// // Additional subcommand configuration goes here, such as arguments...
|
||||
/// )
|
||||
/// # .get_matches();
|
||||
/// ```
|
||||
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
|
||||
//! determine the functioning of your program.
|
||||
//!
|
||||
//! # Example
|
||||
//! Example:
|
||||
//!
|
||||
//! ```no_run
|
||||
//! use clap::{Arg, App, SubCommand};
|
||||
|
|
|
@ -13,7 +13,7 @@ use argmatches::ArgMatches;
|
|||
/// ```no_run
|
||||
/// # use clap::{App, Arg, SubCommand};
|
||||
/// # let matches = App::new("myprog")
|
||||
/// # .subcommand(
|
||||
/// # .subcommand(
|
||||
/// SubCommand::new("conifg")
|
||||
/// .about("Used for configuration")
|
||||
/// .arg(Arg::new("config_file")
|
||||
|
|
Loading…
Reference in a new issue