Class CLIArgumentDefinition

java.lang.Object
org.tquadrat.foundation.config.spi.CLIDefinition
org.tquadrat.foundation.config.spi.CLIArgumentDefinition

@ClassVersion(sourceVersion="$Id: CLIArgumentDefinition.java 1076 2023-10-03 18:36:07Z tquadrat $") @API(status=STABLE, since="0.0.1") public class CLIArgumentDefinition extends CLIDefinition
Run-time copy of the @Argument annotation. By definition, unnamed options are arguments (and instances of this class). Named options are actually another subclass of CLIDefinition.
Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Thanks to:
Mark Sinke
Version:
$Id: CLIArgumentDefinition.java 1076 2023-10-03 18:36:07Z tquadrat $
Since:
0.0.1
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.config.spi.CLIArgumentDefinition"

UML Diagram for "org.tquadrat.foundation.config.spi.CLIArgumentDefinition"

UML Diagram for "org.tquadrat.foundation.config.spi.CLIArgumentDefinition"
  • Field Details Link icon

    • m_Index Link icon

      private final int m_Index
      The index; only used for arguments (not for options).
  • Constructor Details Link icon

    • CLIArgumentDefinition Link icon

      public CLIArgumentDefinition(String property, int index, String usage, String usageKey, String metaVar, boolean required, CmdLineValueHandler<?> handler, boolean multiValued, String format)
      Creates a new CLIArgumentDefinition instance.
      Parameters:
      property - The name of the property.
      index - The position for this argument on the command line.
      usage - The usage text.
      usageKey - The resource bundle key for the usage text.
      metaVar - The meta variable name.
      required - true if the argument or option is mandatory.
      handler - The handler for the option or argument value.
      multiValued - true if the option or argument allows more than one value.
      format - The optional format.
  • Method Details Link icon