summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 3368a06fc..8ae83e735 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -347,7 +347,8 @@ fn resolve_flags_and_init(
if err.kind() == clap::error::ErrorKind::DisplayHelp
|| err.kind() == clap::error::ErrorKind::DisplayVersion =>
{
- err.print().unwrap();
+ // Ignore results to avoid BrokenPipe errors.
+ let _ = err.print();
std::process::exit(0);
}
Err(err) => exit_for_error(AnyError::from(err)),