struct Noir::CLI::ConfigCommand::Parsed

Overview

Parsed argv. Extracted from run (mirroring CacheCommand.parse_argv) so the parsing rules stay unit-testable — run keeps the exit/die side effects. #error is recorded rather than raised so run can turn it into a clean Noir::CLI.die line.

Defined in:

cli/commands/config.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def action : String | Nil #

def clone #

[View source]
def copy_with(action _action = @action, override_path _override_path = @override_path, help _help = @help, error _error = @error) #

[View source]
def error : String | Nil #

def help : Bool #

def override_path : String | Nil #