Search in sources :

Example 1 with LauncherMode

use of fr.inria.spirals.repairnator.states.LauncherMode in project repairnator by Spirals-Team.

the class LauncherUtils method defineArgLauncherMode.

public static FlaggedOption defineArgLauncherMode(String helpMessage) {
    String launcherModeValues = "";
    for (LauncherMode mode : LauncherMode.values()) {
        launcherModeValues += mode.name() + ";";
    }
    launcherModeValues = launcherModeValues.substring(0, launcherModeValues.length() - 1);
    FlaggedOption opt = new FlaggedOption("launcherMode");
    opt.setShortFlag('m');
    opt.setLongFlag("launcherMode");
    opt.setStringParser(EnumeratedStringParser.getParser(launcherModeValues));
    opt.setRequired(true);
    opt.setHelp(helpMessage);
    return opt;
}
Also used : FlaggedOption(com.martiansoftware.jsap.FlaggedOption) LauncherMode(fr.inria.spirals.repairnator.states.LauncherMode)

Aggregations

FlaggedOption (com.martiansoftware.jsap.FlaggedOption)1 LauncherMode (fr.inria.spirals.repairnator.states.LauncherMode)1