diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-11-20 14:27:18 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-11-20 15:01:37 -0500 |
commit | 9598331fa81c653dd581f750494e0dc51cca1963 (patch) | |
tree | 1208bfff4647be39891e11a44f9e7df42930500e /src/worker.rs | |
parent | 883d8fc72f0be582ee95e6191231b4f716c42bae (diff) |
Propagate no_messages option to worker.
Fixes #241
Diffstat (limited to 'src/worker.rs')
-rw-r--r-- | src/worker.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/worker.rs b/src/worker.rs index 0e700dfb..59198dd5 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -156,6 +156,14 @@ impl WorkerBuilder { self } + /// If enabled, error messages are suppressed. + /// + /// This is disabled by default. + pub fn no_messages(mut self, yes: bool) -> Self { + self.opts.no_messages = yes; + self + } + /// If enabled, don't show any output and quit searching after the first /// match is found. pub fn quiet(mut self, yes: bool) -> Self { |