Skip to content

Commit

Permalink
Auto merge of #872 - kbknapp:patch-1b, r=kbknapp
Browse files Browse the repository at this point in the history
Patch 1b
  • Loading branch information
homu committed Feb 23, 2017
2 parents 53f3b65 + 6bf9460 commit 6ec8066
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,13 @@ pub enum AppSettings {
/// ```
/// Now doing the same thing, but *not* using any subcommands will result in the value not being
/// 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"]);
///
Expand Down

0 comments on commit 6ec8066

Please sign in to comment.