From: Russ Combs Date: Fri, 1 Aug 2014 17:05:02 +0000 (-0400) Subject: updated help X-Git-Tag: 3.0.0-233~1430^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62fb97242cd5546be698c9ce0eef9f485c87a658;p=thirdparty%2Fsnort3.git updated help --- diff --git a/ChangeLog b/ChangeLog index d1928a104..e45a9162b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +109 +-- changed --help to give overview of help +-- fixed stream_ip alerts (defrag -> stream_ip) + 108 -- added IpsAction for ips rule action plugins -- renamed various api *init() and *term() for consistency and possible diff --git a/src/parser/cmd_line.cc b/src/parser/cmd_line.cc index af9a6d34d..df6a00ab2 100644 --- a/src/parser/cmd_line.cc +++ b/src/parser/cmd_line.cc @@ -69,8 +69,40 @@ static char* snort_conf_dir = nullptr; const char* get_snort_conf() { return lua_conf; } const char* get_snort_conf_dir() { return snort_conf_dir; } -static void show_usage(const char* program_name); -static void show_options(const char* pfx); +static void help_args(const char* pfx); + +static const char* snort_help = +"Snort has several options to get more help:\n" +"\n" +"--help this overview of help\n" +"--help-builtin output matching builtin rules\n" +"--help-buffers output available inspection buffers\n" +"--help-commands output matching commands\n" +"--help-config output matching config options\n" +"--help-gids output matching generators\n" +"--help-module output description of given module\n" +"--help-options