struct Noir::CLI::ListCommand::Parsed

Overview

Parsed argv. Extracted from run so the parser stays unit-testable without going through the exit/die side effects. #errors collects unrecognized flags / stray positionals so run can reject them instead of silently ignoring anything after the subject.

Defined in:

cli/commands/list.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(subject : String | Nil, format : String, help : Bool, errors : Array(String)) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(subject _subject = @subject, format _format = @format, help _help = @help, errors _errors = @errors) #

[View source]
def errors : Array(String) #

def format : String #

def help : Bool #

def subject : String | Nil #