From b3d4a9cbddcaf4507f19fc1f9f48b2e6e8d13cd9 Mon Sep 17 00:00:00 2001
From: Micael Karlberg
Date: Tue, 19 Jul 2011 15:50:27 +0200
Subject: Added marker id's in the snmpc(command) to allow linking top specific
compiler options. Updated release notes accordingly. OTP-9437
---
lib/snmp/doc/src/notes.xml | 2 +-
lib/snmp/doc/src/snmpc_cmd.xml | 33 ++++++++++++++++++++++++++++-----
2 files changed, 29 insertions(+), 6 deletions(-)
(limited to 'lib')
diff --git a/lib/snmp/doc/src/notes.xml b/lib/snmp/doc/src/notes.xml
index 7b389929cf..b728824c44 100644
--- a/lib/snmp/doc/src/notes.xml
+++ b/lib/snmp/doc/src/notes.xml
@@ -63,7 +63,7 @@
[compiler] Added the option
warnings_as_errors
(for the SNMP MIB compiler (escript) frontend, the option
- --wae is used)
+ --wae is used)
which specifies whether warnings should be treated as errors.
Tuncer Ayaz
Own Id: OTP-9437
diff --git a/lib/snmp/doc/src/snmpc_cmd.xml b/lib/snmp/doc/src/snmpc_cmd.xml
index e3064fc086..72116f8981 100644
--- a/lib/snmp/doc/src/snmpc_cmd.xml
+++ b/lib/snmp/doc/src/snmpc_cmd.xml
@@ -50,6 +50,8 @@
with definitions of Erlang constants for the objects in
the MIB, see
mib_to_hrl/1.
+
+ The following options are supported (note that most of these relate
to the compilation of the MIB file):
+
--help
-
Prints help info.
+
--version
-
Prints application and mib format version.
+
--verbosity verbosity
@@ -74,11 +79,20 @@
Print debug info.
verbosity = trace | debug | log | info | silence
Defaults to silence.
+
--warnings
-
Print warning messages.
+
+
+
+ --wae
+ -
+
Warnings as errors.
+ Indicates that warnings shall be treated as errors.
+
--o directory
@@ -86,6 +100,7 @@
The directory where the compiler should place the output files.
If not specified, output files will be placed in the current working
directory.
+
--i Directory
@@ -94,6 +109,7 @@
By default, the current working directory is always included.
This option can be present several times, each time specifying
one path.
+
--il Directory
@@ -106,6 +122,7 @@
the current version may be in the system). The current directory
and the "snmp-home"/priv/mibs/ are always listed last in the
include path.
+
--sgc
@@ -114,42 +131,50 @@
group check of the mib compiler.
That is, should the OBJECT-GROUP and the NOTIFICATION-GROUP
macro(s) be checked for correctness or not.
+
--dep
-
Keep deprecated definition(s).
If not specified the compiler will ignore deprecated definitions.
+
--desc
-
The DESCRIPTION field will be included.
+
--ref
-
The REFERENCE field will be included.
+
--imp
-
The IMPORTS field will be included.
+
--mi
-
The MODULE-IDENTITY field will be included.
+
--mc
-
The MODULE-COMPLIANCE field will be included.
+
--ac
-
The AGENT-CAPABILITIES field will be included.
+
--mod module
@@ -157,6 +182,7 @@
The module which implements all the instrumentation functions.
The name of all instrumentation functions must be the
same as the corresponding managed object it implements.
+
--nd
@@ -165,6 +191,7 @@
used if a managed object have no instrumentation function.
Instead this will be reported as an error, and the compilation
aborts.
+
--rrnac
@@ -176,11 +203,7 @@
This means that the error will be converted to a warning.
By default it is not included, but if this option is present
it will be.
-
-
- --wae
- -
-
Warnings as errors. Indicates that warnings shall be treated as errors.
+
--
cgit v1.2.3