struct Filter::CSV::CLI::Flags

Overview

Extend the flags struct to include the flag

Defined in:

filter-csv/cli.cr:6
filter-csv/cli.cr:7
filter-csv/cli.cr:12

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"input_file" => {kind: "nil", type: "String", default: "nil", description: {"--input, -i (required)", "Input file to read from"}, short: "i", long: "input", is_required: true}, "config_file" => {kind: "nil", type: "String", default: "nil", description: {"--config, -c (required)", "Filter configuration file"}, short: "c", long: "config", is_required: true}} of String => NamedTuple(kind: String, type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)

Constructors

Instance Method Summary

Constructor Detail

def self.new(command : Admiral::Command) #

Instance Method Detail

def config_file #

[View source]
def input_file #

[View source]
def inspect(io) #

[View source]
def validate!(command) #