From: Russ Combs Date: Sat, 12 Apr 2014 02:49:41 +0000 (-0400) Subject: oops - now actually adding --help-options and doc updates X-Git-Tag: 3.0.0-233~1577 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=593ad08dea13efd3a3f5fab8d9fd2db283ba56c5;p=thirdparty%2Fsnort3.git oops - now actually adding --help-options and doc updates --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 516712d3e..9c571e7bd 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -41,19 +41,19 @@ dist_doc_DATA += $(EXTRA_DIST) snort = $(top_srcdir)/src/snort builtin.txt: $(snort) - $(snort) --markup --help-builtin > $@ + $(snort) --markup --help-builtin | sort -n -t : -k 1.4 -k 2 > $@ commands.txt: $(snort) - $(snort) --markup --help-commands > $@ + $(snort) --markup --help-commands | sort > $@ config.txt: $(snort) - $(snort) --markup --help-config > $@ + $(snort) --markup --help-config | sort -k 3 > $@ gids.txt: $(snort) - $(snort) --markup --help-gids > $@ + $(snort) --markup --help-gids | sort -n -k 1.4 > $@ options.txt: $(snort) - $(snort) --markup --help > $@ + $(snort) --markup --help-options | sort > $@ version.txt: $(snort) $(snort) -V 2>&1 | grep -v Using > $@ diff --git a/doc/snort_manual.txt b/doc/snort_manual.txt index ffe82cd68..7eeb000be 100644 --- a/doc/snort_manual.txt +++ b/doc/snort_manual.txt @@ -26,13 +26,11 @@ include::options.txt[] include::config.txt[] -== Builtin Rules - -The following generators are available: +== Generators include::gids.txt[] -These rules are from the decoders and inspectors: +== Builtin Rules include::builtin.txt[] diff --git a/src/parser/cmd_line.cc b/src/parser/cmd_line.cc index 0240b49f0..b856cf665 100644 --- a/src/parser/cmd_line.cc +++ b/src/parser/cmd_line.cc @@ -857,6 +857,9 @@ static ConfigFunc basic_opts[] = { "help-module", config_help_module, "output config, commands, and builtin rules for given module" }, + { "help-options", config_help_options, + "