struct

Kebab::Schema::Usage::Arguments

Inherits Struct < Value < Object

Usage line shape for a command with positional arguments (no subcommand).

Constructors

new(command_path : Array(String), has_options : Bool, argument_names : Array(String), has_variadic_tail : Bool = false)
Source

Instance methods

argument_names

Argument names in declaration order (used as <name> in the usage line).

Source
command_path

Path of command names from the binary down to this command.

Source
has_options?

true if the command declares any options.

Source
has_variadic_tail?

true if the last argument is variadic (Array(T)).

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source