[jboss-cvs] JBossAS SVN: r111783 - branches/snmp4j-int/varia/src/main/java/org/jboss/jmx/adaptor/snmp/generator.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jul 19 16:55:28 EDT 2011


Author: thauser at redhat.com
Date: 2011-07-19 16:55:28 -0400 (Tue, 19 Jul 2011)
New Revision: 111783

Modified:
   branches/snmp4j-int/varia/src/main/java/org/jboss/jmx/adaptor/snmp/generator/MIBGenerator.java
Log:
improvements to the CLI

Modified: branches/snmp4j-int/varia/src/main/java/org/jboss/jmx/adaptor/snmp/generator/MIBGenerator.java
===================================================================
--- branches/snmp4j-int/varia/src/main/java/org/jboss/jmx/adaptor/snmp/generator/MIBGenerator.java	2011-07-19 20:55:16 UTC (rev 111782)
+++ branches/snmp4j-int/varia/src/main/java/org/jboss/jmx/adaptor/snmp/generator/MIBGenerator.java	2011-07-19 20:55:28 UTC (rev 111783)
@@ -73,6 +73,10 @@
 	 	String oFile = (String)cmdParser.getOptionValue(output);
 	 	String moduleName = (String)cmdParser.getOptionValue(module);
 	 	
+	 	if (moduleName == null){
+	 		moduleName = "JBOSS-AS-MIB";
+	 	}
+	 	
 	 	if (isHelp){
 	 		printUsageMessage();
 	 		System.exit(0);
@@ -91,7 +95,8 @@
 				"-a , --attributes : indicate the name of the snmp-adaptor formatted attributes.xml, if any.\n" +
 				"-n , --notifications : indicate the name of the snmp-adaptor formatted notification.xml file, if any.\n" +
 				"-o , --output : indicate the desired name of the output MIB file. This can be a path.\n" +
-				"-m , --module : indicate the desired name of the output MIB module. This is the name that the SNMP manager will know the MIB by.\n"+
+				"-m , --module : indicate the desired name of the output MIB module. This is the name that the SNMP manager will know the MIB by. \n" +
+				"                Defaults to JBOSS-AS-MIB if not specified\n"+
 				"Example: java -jar mib-generator.jar -a attributes.xml -n notifications.xml -m /home/user/TEST-MIB.mib");
 	}
 	



More information about the jboss-cvs-commits mailing list