diff options
author | Daniel <kingdread@gmx.de> | 2020-08-28 15:49:12 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2020-08-28 15:59:17 +0200 |
commit | 09e1f9c330ec99de06c834b2de95c378bc6d00d3 (patch) | |
tree | 387d58df01ef305245cc58eb456d3e7731dbfc16 /src/main.rs | |
parent | ea60bea5854976e45cee5026c5bdc21d19c0dc0f (diff) | |
download | raidgrep-09e1f9c330ec99de06c834b2de95c378bc6d00d3.tar.gz raidgrep-09e1f9c330ec99de06c834b2de95c378bc6d00d3.tar.bz2 raidgrep-09e1f9c330ec99de06c834b2de95c378bc6d00d3.zip |
add --count/-n flag
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 0915f42..0ff9e44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -92,6 +92,14 @@ pub struct Opt { #[structopt(short = "l", long = "files-with-matches")] file_name_only: bool, + /// Only output the number of matching logs. + #[structopt( + short = "n", + long = "count", + conflicts_with_all = &["sorting", "file-name-only"], + )] + count: bool, + /// Disable colored output. #[structopt(long = "no-color")] no_color: bool, |