From: Russ Combs Date: Mon, 9 Mar 2015 15:20:57 +0000 (-0400) Subject: added doc/usage.txt X-Git-Tag: 3.0.0-233~1031 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da0155fea5c421fbcfb676a6accfc585e59a88dc;p=thirdparty%2Fsnort3.git added doc/usage.txt --- diff --git a/ChangeLog b/ChangeLog index 9fa26f730..0a6ace0cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Pending - build 141 + +-- added doc/usage.txt + 15/02/27 - build 140 -- uncrustify, see crusty.cfg diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 7372d5f37..1543d5f13 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -48,11 +48,12 @@ set (UNBUILT_SOURCES params.txt reference.txt snort2lua.txt + snorty.png snort_manual.txt start.txt style.txt terms.txt - snorty.png + usage.txt # config_changes.txt If ruby executable is not found ) diff --git a/doc/Makefile.am b/doc/Makefile.am index 75f0cb133..c7a5c4407 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -37,10 +37,11 @@ overview.txt \ params.txt \ reference.txt \ snort2lua.txt \ +snorty.png \ start.txt \ style.txt \ terms.txt \ -snorty.png +usage.txt all_sources = \ $(unbuilt_sources) \ diff --git a/doc/reference.txt b/doc/reference.txt index 4ead489ca..2a79078b8 100644 --- a/doc/reference.txt +++ b/doc/reference.txt @@ -2,6 +2,10 @@ include::terms.txt[] +=== Usage + +include::usage.txt[] + === Optional Features include::features.txt[] diff --git a/doc/usage.txt b/doc/usage.txt new file mode 100644 index 000000000..d4a6d0371 --- /dev/null +++ b/doc/usage.txt @@ -0,0 +1,227 @@ +NOTE: For the following examples "$my_path" is assumed to be the path to +the Snort++ install directory. Additionally, it is assumed that +"$my_path/bin" is in your PATH. + + +==== Setting up the environment + +LUA_PATH is used directly by Lua to load and run required libraries. +SNORT_LUA_PATH is used by Snort to load supplemental configuration files. + + export LUA_PATH=$my_path/include/snort/lua/\?.lua\;\; + export SNORT_LUA_PATH=$my_path/etc + + +==== Getting help + +Print the help summary: + + snort --help + +This outputs: + + Snort has several options to get more help: + + -? list command line options (same as --help) + --help this overview of help + --help-commands [] output matching commands + --help-config [] output matching config options + --help-counts [] output matching peg counts + --help-module output description of given module + --help-modules list all available modules with brief help + --help-plugins list all available plugins with brief help + --help-options [