Merge pull request #1263 from matthiasbeyer/imag-grep/dont-print-stats-if-listing-files

Do not print stats when listing files with matches
This commit is contained in:
Matthias Beyer 2018-02-10 18:56:17 +01:00 committed by GitHub
commit 3342a08587
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ fn main() {
if opts.count { if opts.count {
println!("{}", count); println!("{}", count);
} else { } else if !opts.files_with_matches {
println!("Processed {} files, {} matches, {} nonmatches", println!("Processed {} files, {} matches, {} nonmatches",
overall_count, overall_count,
count, count,