private boolean isLegalSwitch(String s) {
        return (legalUnarySwitches.containsKey(s) || legalBinarySwitches.containsKey(s));
    }
Parses the command line
@throws IllegalArgumentException if a parse error occured
vespajlib/src/main/java/com/yahoo/system/CommandLineParser.java