annotation

Kebab::Subcommand

Marks a field as the subcommand of a parent command. Its type is a union of the child command structs, and the parser dispatches to the one named on the command line.

@[Kebab::Subcommand]
getter command : Start | Finish

Available fields:

  • required (Bool): if true, a bare invocation with no subcommand is an error. By default it prints help instead.