test: fixes failing doc test

This commit is contained in:
Kevin K 2017-02-22 16:36:46 -05:00
parent fa26d40a18
commit 6bf94606c2
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A

View file

@ -573,10 +573,11 @@ pub enum AppSettings {
/// propagated down.
///
/// ```rust
/// # use clap::{App, Arg, AppSettings};
/// # use clap::{App, Arg, AppSettings, SubCommand};
/// let m = App::new("myprog")
/// .setting(AppSettings::PropagateGlobalValuesDown)
/// .global_arg(Arg::from_usage("<cmd> 'command to run'"))
/// .arg(Arg::from_usage("[cmd] 'command to run'")
/// .global(true))
/// .subcommand(SubCommand::with_name("foo"))
/// .get_matches_from(vec!["myprog", "set"]);
///