summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2017-05-20 00:12:38 +1200
committerAndrew Gallant <jamslam@gmail.com>2017-05-19 20:00:47 -0400
commit229b8e3b3322177e2a518d87358b3503dfc18cdf (patch)
treea06f23da9061d642fbb1f0d90aad0afc1f67b4bc /src/main.rs
parenta515c4d601e449dd78441e7f7e14ab0c2299ac02 (diff)
Make --quiet flag apply when using --files option
Fixes #483.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 501f2ed7..5cae6a11 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -192,7 +192,9 @@ fn run_files_parallel(args: Arc<Args>) -> Result<u64> {
let mut printer = print_args.printer(stdout.lock());
let mut file_count = 0;
for dent in rx.iter() {
- printer.path(dent.path());
+ if !print_args.quiet() {
+ printer.path(dent.path());
+ }
file_count += 1;
}
file_count
@@ -227,7 +229,9 @@ fn run_files_one_thread(args: Arc<Args>) -> Result<u64> {
None => continue,
Some(dent) => dent,
};
- printer.path(dent.path());
+ if !args.quiet() {
+ printer.path(dent.path());
+ }
file_count += 1;
}
Ok(file_count)