Example usage for io.vertx.core.cli.annotations CLIConfigurator inject

List of usage examples for io.vertx.core.cli.annotations CLIConfigurator inject

Introduction

In this page you can find the example usage for io.vertx.core.cli.annotations CLIConfigurator inject.

Prototype

public static void inject(CommandLine cli, Object object) throws CLIException 

Source Link

Document

Injects the value in the annotated setter methods ( Option and Argument .

Usage

From source file:examples.cli.TypedCLIExamples.java

License:Open Source License

public void example4(List<String> userCommandLineArguments) {
    CLI cli = CLI.create(AnnotatedCli.class);
    CommandLine commandLine = cli.parse(userCommandLineArguments);
    AnnotatedCli instance = new AnnotatedCli();
    CLIConfigurator.inject(commandLine, instance);
}