MCPcopy Create free account
hub / github.com/apache/storm / boolOpt

Method boolOpt

storm-core/src/jvm/org/apache/storm/command/CLI.java:303–306  ·  view source on GitHub ↗

Add a boolean option that enables something. @param shortName the short single character name of the option (no `-` character proceeds it). @param longName the multi character name of the option (no `--` characters proceed it). @return a builder to be used to continue creating the command line.

(String shortName, String longName)

Source from the content-addressed store, hash-verified

301 * @return a builder to be used to continue creating the command line.
302 */
303 public CLIBuilder boolOpt(String shortName, String longName) {
304 opts.add(new Opt(shortName, longName, false, null, null, true));
305 return this;
306 }
307
308 /**
309 * Add a named argument.

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected