class Cling::Formatter::Options

Overview

Represents options for the formatter.

Defined in:

cling/formatter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, option_delim : Char = '-', show_defaults : Bool = true, show_required : Bool = true) #

[View source]

Instance Method Detail

def option_delim : Char #

The character to use for flag option delimiters (default is -).


[View source]
def option_delim=(option_delim : Char) #

The character to use for flag option delimiters (default is -).


[View source]
def show_defaults : Bool #

Whether to show the default tag for options with default values (default is true).


[View source]
def show_defaults=(show_defaults : Bool) #

Whether to show the default tag for options with default values (default is true).


[View source]
def show_required : Bool #

Whether to show the required tag for required arguments/options (default is true).


[View source]
def show_required=(show_required : Bool) #

Whether to show the required tag for required arguments/options (default is true).


[View source]