Skip to content

Commit 8391adc

Browse files
committed
Combine http statuscodes by default
1 parent f6a9f52 commit 8391adc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const HELP: &str = r#"
3636
Will be met if the log lines fit in the width of your terminal
3737
--max-runtime X Terminate after X seconds
3838
--combine Combine stats of all files together
39-
--merge Combine http statuscodes in groups
39+
--unmerge Do not group http statuscodes
4040
--filter X Only show log lines matching this status code.
4141
Can be used multiple times, "4xx" can be used to show 403, 404 etc.
4242
The statistics are not affected by this option.
@@ -84,7 +84,7 @@ fn main() {
8484
};
8585

8686
let combine_filestats: bool = pargs.contains("--combine");
87-
let merge_statuscodes: bool = pargs.contains("--merge");
87+
let merge_statuscodes: bool = !pargs.contains("--unmerge");
8888

8989
let mut filters = vec![];
9090
while let Ok(filter) = pargs.value_from_str::<&str, String>("--filter") {

0 commit comments

Comments
 (0)