in src/main/java/com/vmware/vim25/mo/util/CommandLineParser.java [288:317]
private void print_options(HashMap Opts) {
String type = "";
String defaultVal = "";
Iterator It;
String help = "";
Set generalKeys = Opts.keySet();
It = generalKeys.iterator();
while (It.hasNext()) {
String keyValue = It.next().toString();
OptionSpec oSpec = (OptionSpec) Opts.get(keyValue);
if ((oSpec.getOptionType() != null) && (oSpec.getOptionDefault() != null)) {
type = oSpec.getOptionType();
defaultVal = oSpec.getOptionDefault();
System.out.println(" --" + keyValue + " < type " + type + ", default " + defaultVal + ">");
}
if ((oSpec.getOptionDefault() != null) && (oSpec.getOptionType() == null)) {
defaultVal = oSpec.getOptionDefault();
System.out.println(" --" + keyValue + " < default " + defaultVal + " >");
}
else if ((oSpec.getOptionType() != null) && (oSpec.getOptionDefault() == null)) {
type = oSpec.getOptionType();
System.out.println(" --" + keyValue + " < type " + type + " >");
}
else if ((oSpec.getOptionType() == null) && (oSpec.getOptionDefault() == null)) {
System.out.println(" --" + keyValue + " ");
}
help = oSpec.getOptionDesc();
System.out.println(" " + help);
}
}