commit 44175b6e9757902133bd9584ae531c12b91ee17a
parent 219f3f8e1649a94a25c7ef4d4713b9c26010db9f
Author: Stephen Gregoratto <dev@sgregoratto.me>
Date: Sat, 19 Sep 2020 17:18:18 +1000
reorder getopt switch cases
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ngrep.c b/ngrep.c
@@ -230,9 +230,6 @@ main(int argc, char **argv)
case 't':
print_time = &print_time_absolute;
break;
- case 'v':
- invert_match = true;
- break;
case 'T':
if (print_time == &print_time_diff) {
print_time = print_time_offset;
@@ -242,6 +239,9 @@ main(int argc, char **argv)
gettimeofday(&prev_ts, NULL);
}
break;
+ case 'v':
+ invert_match = true;
+ break;
case 'w':
re_match_word = true;
break;