Skip to content

Commit a643fb2

Browse files
committed
fix: fixes a bug where the help is printed twice
Closes #623
1 parent b486995 commit a643fb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/parser.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1154,9 +1154,9 @@ impl<'a, 'b> Parser<'a, 'b>
11541154
fn _help(&self) -> ClapResult<()> {
11551155
let mut buf = vec![];
11561156
try!(Help::write_parser_help(&mut buf, self));
1157-
let out = io::stdout();
1158-
let mut out_buf = BufWriter::new(out.lock());
1159-
try!(out_buf.write(&*buf));
1157+
// let out = io::stdout();
1158+
// let mut out_buf = BufWriter::new(out.lock());
1159+
// try!(out_buf.write(&*buf));
11601160
Err(Error {
11611161
message: unsafe { String::from_utf8_unchecked(buf) },
11621162
kind: ErrorKind::HelpDisplayed,

0 commit comments

Comments
 (0)