struct Noir::CLI::RulesCommand::Parsed

Overview

Parsed argv. Pulled out of run so the parser can be exercised in unit specs without triggering the exit/die side effects. #error is recorded (rather than raised) when argv is malformed so run can turn it into a clean Noir::CLI.die line.

Defined in:

cli/commands/rules.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(action : String | Nil, help : Bool, debug : Bool, verbose : Bool, error : String | Nil) #

[View source]

Instance Method Detail

def action : String | Nil #

def clone #

[View source]
def copy_with(action _action = @action, help _help = @help, debug _debug = @debug, verbose _verbose = @verbose, error _error = @error) #

[View source]
def debug : Bool #

def error : String | Nil #

def help : Bool #

def verbose : Bool #