Skip to content

Commit

Permalink
fix: fixes a bug where the help is printed twice
Browse files Browse the repository at this point in the history
Closes #623
  • Loading branch information
kbknapp committed Aug 22, 2016
1 parent b486995 commit a643fb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,9 @@ impl<'a, 'b> Parser<'a, 'b>
fn _help(&self) -> ClapResult<()> {
let mut buf = vec![];
try!(Help::write_parser_help(&mut buf, self));
let out = io::stdout();
let mut out_buf = BufWriter::new(out.lock());
try!(out_buf.write(&*buf));
// let out = io::stdout();
// let mut out_buf = BufWriter::new(out.lock());
// try!(out_buf.write(&*buf));
Err(Error {
message: unsafe { String::from_utf8_unchecked(buf) },
kind: ErrorKind::HelpDisplayed,
Expand Down

0 comments on commit a643fb2

Please sign in to comment.