List of usage examples for io.vertx.core.cli CommandLine isFlagEnabled
boolean isFlagEnabled(String name);
From source file:examples.cli.CLIExamples.java
License:Open Source License
public void example8(CLI cli, List<String> userCommandLineArguments) { CommandLine commandLine = cli.parse(userCommandLineArguments); String opt = commandLine.getOptionValue("my-option"); boolean flag = commandLine.isFlagEnabled("my-flag"); String arg0 = commandLine.getArgumentValue(0); }