commit 7fc7720428940a12d74ae1570bfbd007614e7c56
parent 4acd781401efd634e61246c168523f64421b6831
Author: Brian C. Lane <bcl@brianlane.com>
Date: Sun, 20 Mar 2022 10:03:13 -0700
cmdline: Add support for --keep-days and --check_cache
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/strix/cmdline.py b/src/strix/cmdline.py
@@ -53,6 +53,16 @@ def parser(max_cores) -> argparse.ArgumentParser:
metavar="MAXCORES",
type=int,
default=max_cores)
+ optional.add_argument("--keep-days",
+ help="How many days of events to keep",
+ metavar="KEEPDAYS",
+ type=int,
+ default=45)
+ optional.add_argument("--check-cache",
+ help="How often to check cache for expired events (in minutes)",
+ metavar="CHECKCACHE",
+ type=int,
+ default=60)
# add the show version option