File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ pub fn main() -> Result<utils::ExitCode> {
6161 if e. kind == clap:: ErrorKind :: HelpDisplayed
6262 || e. kind == clap:: ErrorKind :: VersionDisplayed =>
6363 {
64- return Ok ( utils:: ExitCode ( 0 ) )
64+ writeln ! ( process( ) . stdout( ) . lock( ) , "{}" , e. message) ?;
65+ return Ok ( utils:: ExitCode ( 0 ) ) ;
6566 }
6667 Err ( e) => Err ( e) ,
6768 } ?;
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ pub fn main() -> Result<utils::ExitCode> {
9898 if e. kind == clap:: ErrorKind :: HelpDisplayed
9999 || e. kind == clap:: ErrorKind :: VersionDisplayed =>
100100 {
101- return Ok ( utils:: ExitCode ( 0 ) )
101+ writeln ! ( process( ) . stdout( ) . lock( ) , "{}" , e. message) ?;
102+ return Ok ( utils:: ExitCode ( 0 ) ) ;
102103 }
103104 Err ( e) => Err ( e) ?,
104105 } ;
You can’t perform that action at this time.
0 commit comments