struct Squarectl::CLI::Swarm::Config::Flags

Overview

Extend the flags struct to include the flag

Defined in:

Constant Summary

DESCRIPTIONS = {} of String => String
SETTINGS = {"allow_undefined_flags" => true}

Per-class parser settings, populated at compile time by the DSL macros. Like SPECS, this constant belongs to this command's nested Flags struct only: sub-commands get their own and never inherit these values.

SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "config" => {kind: "nil", type: "String", default: "\"squarectl.yml\"", description: {"--config, -c (default: \"squarectl.yml\")", "Path to config 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 __help__ #

def config #

def inspect(io) #

def validate!(command) #