class Cling::Parser::Options

Overview

Represents options for the parser.

Defined in:

cling/parser.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, parse_string : Bool = true, option_delim : Char = '-', string_delims : Set(Char) = Set {'"', '\''}) #

[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 parse_string : Bool #

Parse string arguments as one value instead of separate values (defaults is true).


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

Parse string arguments as one value instead of separate values (defaults is true).


[View source]
def string_delims : Set(Char) #

The characters to accept as string delimiters (default is " and ').


[View source]
def string_delims=(string_delims : Set(Char)) #

The characters to accept as string delimiters (default is " and ').


[View source]