use of com.martiansoftware.jsap.FlaggedOption in project repairnator by Spirals-Team.
the class LauncherUtils method defineArgMongoDBName.
public static FlaggedOption defineArgMongoDBName() {
FlaggedOption opt = new FlaggedOption("mongoDBName");
opt.setLongFlag("dbname");
opt.setDefault("repairnator");
opt.setStringParser(JSAP.STRING_PARSER);
opt.setHelp("Specify mongodb DB name.");
return opt;
}
use of com.martiansoftware.jsap.FlaggedOption in project repairnator by Spirals-Team.
the class LauncherUtils method defineArgDockerImageName.
public static FlaggedOption defineArgDockerImageName() {
FlaggedOption opt = new FlaggedOption("imageName");
opt.setShortFlag('n');
opt.setLongFlag("name");
opt.setStringParser(JSAP.STRING_PARSER);
opt.setRequired(true);
opt.setHelp("Specify the docker image name to use.");
return opt;
}
use of com.martiansoftware.jsap.FlaggedOption in project repairnator by Spirals-Team.
the class LauncherUtils method defineArgNbThreads.
public static FlaggedOption defineArgNbThreads() {
FlaggedOption opt = new FlaggedOption("threads");
opt.setShortFlag('t');
opt.setLongFlag("threads");
opt.setStringParser(JSAP.INTEGER_PARSER);
opt.setDefault("2");
opt.setHelp("Specify the number of threads to run in parallel");
return opt;
}
use of com.martiansoftware.jsap.FlaggedOption in project repairnator by Spirals-Team.
the class LauncherUtils method defineArgGoogleSecretPath.
public static FlaggedOption defineArgGoogleSecretPath() {
FlaggedOption opt = new FlaggedOption("googleSecretPath");
opt.setLongFlag("googleSecretPath");
opt.setStringParser(FileStringParser.getParser().setMustBeFile(true));
opt.setDefault("./client_secret.json");
opt.setHelp("Specify the path to the JSON google secret for serializing.");
return opt;
}
use of com.martiansoftware.jsap.FlaggedOption in project repairnator by Spirals-Team.
the class LauncherUtils method defineArgSpreadsheetId.
public static FlaggedOption defineArgSpreadsheetId() {
FlaggedOption opt = new FlaggedOption("spreadsheet");
opt.setLongFlag("spreadsheet");
opt.setStringParser(JSAP.STRING_PARSER);
opt.setHelp("Specify Google Spreadsheet ID to put data.");
return opt;
}
Aggregations