update(userspace/falco): rename --stats_interval to --stats-interval

To match the style of other long flags of the Falco CLI.

Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato
2020-07-08 09:02:20 +00:00
committed by poiana
parent 00689a5d97
commit 825e249294

View File

@@ -140,9 +140,9 @@ static void usage()
" -P, --pidfile <pid_file> When run as a daemon, write pid to specified file\n" " -P, --pidfile <pid_file> When run as a daemon, write pid to specified file\n"
" -r <rules_file> Rules file/directory (defaults to value set in configuration file, or /etc/falco_rules.yaml).\n" " -r <rules_file> Rules file/directory (defaults to value set in configuration file, or /etc/falco_rules.yaml).\n"
" Can be specified multiple times to read from multiple files/directories.\n" " Can be specified multiple times to read from multiple files/directories.\n"
" -s <stats_file> If specified, write statistics related to falco's reading/processing of events\n" " -s <stats_file> If specified, append statistics related to Falco's reading/processing of events\n"
" to this file. (Only useful in live mode).\n" " to this file (only useful in live mode).\n"
" --stats_interval <msec> When using -s <stats_file>, write statistics every <msec> ms.\n" " --stats-interval <msec> When using -s <stats_file>, write statistics every <msec> ms.\n"
" This uses signals, so don't recommend intervals below 200 ms.\n" " This uses signals, so don't recommend intervals below 200 ms.\n"
" Defaults to 5000 (5 seconds).\n" " Defaults to 5000 (5 seconds).\n"
" -S <len>, --snaplen <len>\n" " -S <len>, --snaplen <len>\n"
@@ -479,7 +479,7 @@ int falco_init(int argc, char **argv)
{"print-base64", no_argument, 0, 'b'}, {"print-base64", no_argument, 0, 'b'},
{"print", required_argument, 0, 'p'}, {"print", required_argument, 0, 'p'},
{"snaplen", required_argument, 0, 'S'}, {"snaplen", required_argument, 0, 'S'},
{"stats_interval", required_argument, 0}, {"stats-interval", required_argument, 0},
{"support", no_argument, 0}, {"support", no_argument, 0},
{"unbuffered", no_argument, 0, 'U'}, {"unbuffered", no_argument, 0, 'U'},
{"validate", required_argument, 0, 'V'}, {"validate", required_argument, 0, 'V'},