Search in sources :

Example 1 with Switch

use of com.martiansoftware.jsap.Switch in project repairnator by Spirals-Team.

the class LauncherUtils method defineArgCreateOutputDir.

public static Switch defineArgCreateOutputDir() {
    Switch sw = new Switch("createOutputDir");
    sw.setLongFlag("createOutputDir");
    sw.setDefault("false");
    sw.setHelp("Create a specific directory for output.");
    return sw;
}
Also used : Switch(com.martiansoftware.jsap.Switch)

Example 2 with Switch

use of com.martiansoftware.jsap.Switch in project repairnator by Spirals-Team.

the class LauncherUtils method defineArgHelp.

public static Switch defineArgHelp() {
    Switch sw = new Switch("help");
    sw.setShortFlag('h');
    sw.setLongFlag("help");
    sw.setDefault("false");
    return sw;
}
Also used : Switch(com.martiansoftware.jsap.Switch)

Example 3 with Switch

use of com.martiansoftware.jsap.Switch in project repairnator by Spirals-Team.

the class LauncherUtils method defineArgNotifyEndProcess.

public static Switch defineArgNotifyEndProcess() {
    Switch sw = new Switch("notifyEndProcess");
    sw.setLongFlag("notifyEndProcess");
    sw.setDefault("false");
    sw.setHelp("Activate the notification when the process ends.");
    return sw;
}
Also used : Switch(com.martiansoftware.jsap.Switch)

Example 4 with Switch

use of com.martiansoftware.jsap.Switch in project repairnator by Spirals-Team.

the class LauncherUtils method defineArgDebug.

public static Switch defineArgDebug() {
    Switch sw = new Switch("debug");
    sw.setShortFlag('d');
    sw.setLongFlag("debug");
    sw.setDefault("false");
    return sw;
}
Also used : Switch(com.martiansoftware.jsap.Switch)

Example 5 with Switch

use of com.martiansoftware.jsap.Switch in project repairnator by Spirals-Team.

the class LauncherUtils method defineArgSkipDelete.

public static Switch defineArgSkipDelete() {
    Switch sw = new Switch("skipDelete");
    sw.setLongFlag("skipDelete");
    sw.setDefault("false");
    sw.setHelp("Skip the deletion of docker container.");
    return sw;
}
Also used : Switch(com.martiansoftware.jsap.Switch)

Aggregations

Switch (com.martiansoftware.jsap.Switch)7 FlaggedOption (com.martiansoftware.jsap.FlaggedOption)2 JSAP (com.martiansoftware.jsap.JSAP)2 JSAPException (com.martiansoftware.jsap.JSAPException)1