Search in sources :

Example 6 with FlaggedOption

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;
}
Also used : FlaggedOption(com.martiansoftware.jsap.FlaggedOption)

Example 7 with FlaggedOption

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;
}
Also used : FlaggedOption(com.martiansoftware.jsap.FlaggedOption)

Example 8 with FlaggedOption

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;
}
Also used : FlaggedOption(com.martiansoftware.jsap.FlaggedOption)

Example 9 with FlaggedOption

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;
}
Also used : FlaggedOption(com.martiansoftware.jsap.FlaggedOption)

Example 10 with FlaggedOption

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;
}
Also used : FlaggedOption(com.martiansoftware.jsap.FlaggedOption)

Aggregations

FlaggedOption (com.martiansoftware.jsap.FlaggedOption)19 JSAP (com.martiansoftware.jsap.JSAP)3 Switch (com.martiansoftware.jsap.Switch)2 JSAPException (com.martiansoftware.jsap.JSAPException)1 FileStringParser (com.martiansoftware.jsap.stringparsers.FileStringParser)1 LauncherMode (fr.inria.spirals.repairnator.states.LauncherMode)1