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> {
61
61
if e. kind == clap:: ErrorKind :: HelpDisplayed
62
62
|| e. kind == clap:: ErrorKind :: VersionDisplayed =>
63
63
{
64
- return Ok ( utils:: ExitCode ( 0 ) )
64
+ writeln ! ( process( ) . stdout( ) . lock( ) , "{}" , e. message) ?;
65
+ return Ok ( utils:: ExitCode ( 0 ) ) ;
65
66
}
66
67
Err ( e) => Err ( e) ,
67
68
} ?;
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ pub fn main() -> Result<utils::ExitCode> {
98
98
if e. kind == clap:: ErrorKind :: HelpDisplayed
99
99
|| e. kind == clap:: ErrorKind :: VersionDisplayed =>
100
100
{
101
- return Ok ( utils:: ExitCode ( 0 ) )
101
+ writeln ! ( process( ) . stdout( ) . lock( ) , "{}" , e. message) ?;
102
+ return Ok ( utils:: ExitCode ( 0 ) ) ;
102
103
}
103
104
Err ( e) => Err ( e) ?,
104
105
} ;
You can’t perform that action at this time.
0 commit comments