Defines a command line argument. Unlike options, argument don't have names and are identified using an index. The first index is 0 (because we are in the computer world).

  • Argument
    • BaseDataObject
    • Basic
      • Identifiable
      • Object
        • Anything

no subtypes hierarchy

Initializer
Argument(String? argName = null, String? defaultValue = null, String? description = null, Boolean? hidden = null, Integer? index = null, Boolean? multiValued = null, Boolean? required = null)
Parameters:
  • argName = null

    Sets the argument name of this Argument.

  • defaultValue = null

    Sets the default value of this Argument.

  • description = null

    Sets the description of the Argument.

  • hidden = null

    Sets whether or not the current Argument is hidden.

  • index = null

    Sets the argument index.

  • multiValued = null

    Sets whether or not the argument can receive several values. Only the last argument can receive several values.

  • required = null

    Sets whether or not the current Argument is required.

Attributes
argNameshared String? argName

Sets the argument name of this Argument.

defaultValueshared String? defaultValue

Sets the default value of this Argument.

descriptionshared String? description

Sets the description of the Argument.

hiddenshared Boolean? hidden

Sets whether or not the current Argument is hidden.

indexshared Integer? index

Sets the argument index.

multiValuedshared Boolean? multiValued

Sets whether or not the argument can receive several values. Only the last argument can receive several values.

requiredshared Boolean? required

Sets whether or not the current Argument is required.

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
toJsonshared actual default JsonObject toJson()
Refines BaseDataObject.toJson
Inherited Methods
Methods inherited from: Object
equals
Methods inherited from: BaseDataObject
toJson