mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 15:27:16 +00:00
test: fixes failing doc test
This commit is contained in:
parent
fa26d40a18
commit
6bf94606c2
1 changed files with 3 additions and 2 deletions
|
@ -573,10 +573,11 @@ pub enum AppSettings {
|
||||||
/// propagated down.
|
/// propagated down.
|
||||||
///
|
///
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// # use clap::{App, Arg, AppSettings};
|
/// # use clap::{App, Arg, AppSettings, SubCommand};
|
||||||
/// let m = App::new("myprog")
|
/// let m = App::new("myprog")
|
||||||
/// .setting(AppSettings::PropagateGlobalValuesDown)
|
/// .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"))
|
/// .subcommand(SubCommand::with_name("foo"))
|
||||||
/// .get_matches_from(vec!["myprog", "set"]);
|
/// .get_matches_from(vec!["myprog", "set"]);
|
||||||
///
|
///
|
||||||
|
|
Loading…
Add table
Reference in a new issue