fix: failing doc test

This commit is contained in:
NickHackman 2020-07-10 09:36:39 -04:00
parent 5118cec1b1
commit cf9265d660

View file

@ -950,7 +950,7 @@ impl<'b> App<'b> {
/// ```no_run
/// # use clap::{App, Arg, };
/// let m = App::new("myprog")
/// .subcommand(App::new("test").long_flag('t')
/// .subcommand(App::new("test").long_flag("test")
/// .long_flag_alias("testing"))
/// .get_matches_from(vec!["myprog", "--testing"]);
/// assert_eq!(m.subcommand_name(), Some("test"));