class AocCli::Errors::FlagInv

Attributes

flag[R]

Public Class Methods

new(flag) click to toggle source
# File lib/aoc_cli/errors.rb, line 153
def initialize(flag)
        @flag = flag
end

Public Instance Methods

message() click to toggle source
# File lib/aoc_cli/errors.rb, line 156
                        def message
                                <<~error
                                #{ERROR}: Invalid flag: #{flag.red}
                                Use the #{"-h".yellow} or #{"--help".yellow} flags for a list of commands
                                error
                        end