Example usage for org.apache.commons.cli2.builder SwitchBuilder withName

List of usage examples for org.apache.commons.cli2.builder SwitchBuilder withName

Introduction

In this page you can find the example usage for org.apache.commons.cli2.builder SwitchBuilder withName.

Prototype

public SwitchBuilder withName(final String name) 

Source Link

Document

Use this option name.

Usage

From source file:de.tu_chemnitz.mi.barcd.app.CommandLineArgumentsParser.java

private Switch createDisplaySwitch() {
    SwitchBuilder sb = new SwitchBuilder();
    Switch displaySwitch = sb.withName("display").withDescription("Whether to display each frame.")
            .withSwitchDefault(false).create();
    return displaySwitch;
}

From source file:de.tu_chemnitz.mi.barcd.app.CommandLineArgumentsParser.java

private Switch createPersistSwitch() {
    SwitchBuilder sb = new SwitchBuilder();
    Switch persistSwitch = sb.withName("persist").withDescription("Whether to persist any extractions")
            .withSwitchDefault(true).create();
    return persistSwitch;
}