mirror of
https://github.com/clap-rs/clap
synced 2024-12-15 07:12:32 +00:00
fix: failing doc test
This commit is contained in:
parent
5118cec1b1
commit
cf9265d660
1 changed files with 1 additions and 1 deletions
|
@ -950,7 +950,7 @@ impl<'b> App<'b> {
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
/// # use clap::{App, Arg, };
|
/// # use clap::{App, Arg, };
|
||||||
/// let m = App::new("myprog")
|
/// let m = App::new("myprog")
|
||||||
/// .subcommand(App::new("test").long_flag('t')
|
/// .subcommand(App::new("test").long_flag("test")
|
||||||
/// .long_flag_alias("testing"))
|
/// .long_flag_alias("testing"))
|
||||||
/// .get_matches_from(vec!["myprog", "--testing"]);
|
/// .get_matches_from(vec!["myprog", "--testing"]);
|
||||||
/// assert_eq!(m.subcommand_name(), Some("test"));
|
/// assert_eq!(m.subcommand_name(), Some("test"));
|
||||||
|
|
Loading…
Reference in a new issue