1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

Propagate no_messages option to worker.

Fixes #241
This commit is contained in:
Andrew Gallant 2016-11-20 14:27:18 -05:00
parent 883d8fc72f
commit 9598331fa8
2 changed files with 9 additions and 0 deletions

View File

@ -197,6 +197,7 @@ impl Args {
.invert_match(self.invert_match) .invert_match(self.invert_match)
.max_count(self.max_count) .max_count(self.max_count)
.mmap(self.mmap) .mmap(self.mmap)
.no_messages(self.no_messages)
.quiet(self.quiet) .quiet(self.quiet)
.text(self.text) .text(self.text)
.build() .build()

View File

@ -156,6 +156,14 @@ impl WorkerBuilder {
self 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 /// If enabled, don't show any output and quit searching after the first
/// match is found. /// match is found.
pub fn quiet(mut self, yes: bool) -> Self { pub fn quiet(mut self, yes: bool) -> Self {