private static int optionAsInt(CommandLine cmdLine, String optName) throws org.apache.commons.cli.ParseException {
        return ((Number)cmdLine.getParsedOptionValue(optName)).intValue();
    }
If not specified in options, will get form cluster list
vespaclient-java/src/main/java/com/yahoo/vespavisit/VdsVisit.java