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;
}
Aggregations