class Opal::CLI::Argument

Overview

Represents a positional argument for a command.

Defined in:

opal/cli/argument.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : Symbol, description : String = "", required : Bool = false, default : String | Nil = nil, type : Symbol = :string) #

[View source]

Instance Method Detail

def default : String | Nil #

[View source]
def description : String #

[View source]
def name : Symbol #

[View source]
def required? : Bool #

[View source]
def type : Symbol #

[View source]