Skip to content
package

org.draftcode.argot.annotations

Annotations

  • ArgumentDeclares a positional argument on a Command constructor parameter, named after the parameter.
  • CommandMarks a class whose primary-constructor parameters declare a command-line interface.
  • FlagDeclares a boolean flag on a Command constructor parameter.
  • OptionDeclares a value-bearing named option on a Command constructor parameter.

Top-level declarations

NO_DEFAULT

const val NO_DEFAULT: String

Sentinel for Option.default meaning "no default supplied" (annotation arguments cannot be null). Used by the processor; not intended for direct use.

Defaults.kt

Released under the Apache License 2.0.