mirror of
https://github.com/clap-rs/clap
synced 2025-01-05 17:28:42 +00:00
Fixed doc tests
This commit is contained in:
parent
b7fdf9024a
commit
152aa8919a
3 changed files with 32 additions and 33 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1,4 +1,4 @@
|
|||
[root]
|
||||
name = "clap"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
|
||||
|
|
|
@ -57,7 +57,6 @@ use subcommand::SubCommand;
|
|||
/// println!("Not printing testing lists...");
|
||||
/// }
|
||||
/// }
|
||||
/// }
|
||||
pub struct ArgMatches {
|
||||
pub matches_of: &'static str,
|
||||
pub flags: HashMap<&'static str, FlagArg>,
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
//! Example:
|
||||
//!
|
||||
//! ```no_run
|
||||
//! use clap::{Arg, App};
|
||||
//! use clap::{Arg, App, SubCommand};
|
||||
//!
|
||||
//! // ...
|
||||
//!
|
||||
|
@ -37,7 +37,7 @@
|
|||
//! .short("d")
|
||||
//! .multiple(true)
|
||||
//! .help("Turn debugging information on"))
|
||||
//! .subcomamnd(SubCommand::new("test")
|
||||
//! .subcommand(SubCommand::new("test")
|
||||
//! .about("Has test sub functionality")
|
||||
//! .arg(Arg::new("verbose")
|
||||
//! .short("v")
|
||||
|
|
Loading…
Reference in a new issue