aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
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,