mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
Auto merge of #375 - messense:messense-patch-1, r=Vinatorul
docs(App) Fix App.print_help documentation
This commit is contained in:
commit
b1264b7dbd
1 changed files with 2 additions and 3 deletions
|
@ -1122,9 +1122,8 @@ impl<'a, 'v, 'ab, 'u, 'h, 'ar> App<'a, 'v, 'ab, 'u, 'h, 'ar> {
|
|||
/// ```no_run
|
||||
/// # use clap::App;
|
||||
/// # use std::io;
|
||||
/// let mut app = App::new("myprog");
|
||||
/// let mut out = io::stdout();
|
||||
/// app.write_help(&mut out).ok().expect("failed to write to stdout");
|
||||
/// let app = App::new("myprog");
|
||||
/// app.print_help();
|
||||
/// ```
|
||||
pub fn print_help(&self) -> ClapResult<()> {
|
||||
let out = io::stdout();
|
||||
|
|
Loading…
Reference in a new issue