summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorliuwentan <[email protected]>2023-04-07 11:28:34 +0800
committerliuwentan <[email protected]>2023-04-07 11:28:34 +0800
commit0c4acf224a19ea24a6863cacbeef210eb12a1a9c (patch)
treef57e9132676803f637c77e0c34082620042f9eda /tools
parent4430c8e696aa28f183a53d45ba45f2a9ffa20f0c (diff)
allow maat_json.json has no compile/g2c/g2c table
Diffstat (limited to 'tools')
-rw-r--r--tools/maat_redis_tool.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/maat_redis_tool.cpp b/tools/maat_redis_tool.cpp
index 68c5072..1624afb 100644
--- a/tools/maat_redis_tool.cpp
+++ b/tools/maat_redis_tool.cpp
@@ -26,6 +26,7 @@ void maat_tool_print_usage(void)
printf("\t-p [port], redis port, 6379 as default.\n");
printf("\t-n [db], redis db, 0 as default.\n");
printf("\t-d [dir], dump rules from redis to [dir], %s as default.\n", redis_dump_dir);
+ printf("\t-u [dir], flush redis and upload full rules to redis, confirm the risk before proceeding\n");
printf("\t-v [version], dump specific [version] from redis, dump latest version as default.\n");
printf("\t-j [payload.json], add or delete rules as maat json. Must have field compile_table field, and plugin table's valid flag must be in the last column.\n");
printf("\t-t [timeout], timeout config after t seconds, default is 0 which means never timeout.\n");