use of org.apache.commons.cli.Option in project moco by dreamhead.
the class ShutdownPortOption method shutdownPortOption.
public static Option shutdownPortOption() {
Option opt = new Option("s", true, "shutdown port");
opt.setType(String.class);
opt.setRequired(false);
return opt;
}
use of org.apache.commons.cli.Option in project moco by dreamhead.
the class StartArgsParser method httpsCertificate.
protected Option httpsCertificate() {
Option option = new Option(null, "https", true, "Https certificate filename");
option.setType(String.class);
option.setRequired(false);
return option;
}
use of org.apache.commons.cli.Option in project moco by dreamhead.
the class StartArgsParser method keyStore.
protected Option keyStore() {
Option option = new Option(null, "keystore", true, "Key store password");
option.setType(String.class);
option.setRequired(false);
return option;
}
use of org.apache.commons.cli.Option in project moco by dreamhead.
the class StartArgsParser method settingsOption.
protected Option settingsOption() {
Option opt = new Option("g", true, "global settings");
opt.setType(String.class);
opt.setRequired(false);
return opt;
}
use of org.apache.commons.cli.Option in project onebusaway-gtfs-modules by OneBusAway.
the class GtfsDatabaseLoaderMain method buildOptions.
protected void buildOptions(Options options) {
Option driverClassOption = new Option(ARG_DRIVER_CLASS, true, "JDBC driverClass");
driverClassOption.setRequired(true);
options.addOption(driverClassOption);
Option urlOption = new Option(ARG_URL, true, "JDBC url");
urlOption.setRequired(true);
options.addOption(urlOption);
options.addOption(ARG_USERNAME, true, "JDBC username");
options.addOption(ARG_PASSWORD, true, "JDBC password");
}
Aggregations