cli.setSummary(summary.value());
public static CLI define() { return new DefaultCLI().setName("bye").addOption(new TypedOption<String>() .setType(String.class) .setRequired(true) .setShortName("n") .setSingleValued(true)) .setSummary("A command saying goodbye."); }
CLI cli = CLI.create("wget").setSummary("Wget implemented with Vert.x HTTP client"). addArgument(new Argument().setIndex(0).setArgName("http-url").setDescription("the HTTP uri to get"));
cli.setSummary(summary.value());
/** * Sets the summary of the CLI. * @param summary the summary * @return the current {@link io.vertx.rxjava.core.cli.CLI} instance */ public io.vertx.rxjava.core.cli.CLI setSummary(String summary) { delegate.setSummary(summary); return this; }
/** * Sets the summary of the CLI. * @param summary the summary * @return the current {@link io.vertx.rxjava.core.cli.CLI} instance */ public io.vertx.rxjava.core.cli.CLI setSummary(String summary) { delegate.setSummary(summary); return this; }
public static CLI define() { return new DefaultCLI().setName("bye").addOption(new TypedOption<String>() .setType(String.class) .setRequired(true) .setShortName("n") .setSingleValued(true)) .setSummary("A command saying goodbye."); }
static CommandLine cli(String[] args) { CLI cli = CLI.create("java -jar <mqtt-broker>-fat.jar") .setSummary("A vert.x MQTT Broker") .addOption(new Option() .setLongName("conf")