annotation

Kebab::Argument

Marks a field as a positional argument, filled by position rather than a flag.

As with Kebab::Option, the field's type sets how the value converts. An Array(T) field as the last argument consumes the remaining positionals.

@[Kebab::Argument(description: "File to trim")]
getter path : String

Available fields:

  • name (String): the <name> placeholder in usage and help. Defaults to the field name with underscores as dashes.
  • description (String): the help text for the argument.
  • converter (Type): a converter for types kebab does not convert on its own, as with Kebab::Option. See Kebab::Convert.