Top Description Methods
io.vertx.core.cli.annotations

public @Interface Argument

extends Annotation
Annotations
@Target:METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Annotates a setter to be called with the value of a command line argument.
Author
Clement Escoffier
See Also
Option

Method Summary

Modifier and TypeMethod and Description
public String
argName()

The name of this argument (used in doc)

public int
index()

The (0-based) position of this argument relative to the argument list.

public boolean
required()

Whether or not the argument is required.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

argNameback to summary
public String argName()

The name of this argument (used in doc)

indexback to summary
public int index()

The (0-based) position of this argument relative to the argument list. The first parameter has the index 0, the second 1...

Index is mandatory to force you to think to the order.

requiredback to summary
public boolean required()

Whether or not the argument is required. An argument is required by default.