struct Main::Flags

Overview

Extend the flags struct to include the flag

Defined in:

main.cr:4
main.cr:7
main.cr:13
main.cr:19

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "host" => {kind: "nil", type: "String", default: "nil", description: {"--host, -h (required)", "The Minecraft server IP, not a DNS name"}, short: "h", long: "host", is_required: true}, "port" => {kind: "nil", type: "Int32", default: "25575", description: {"--port, -p (default: 25575)", "The Minecraft RCON port, not the game port"}, short: "p", long: "port", is_required: true}, "rcon_password" => {kind: "nil", type: "String", default: "nil", description: {"--password, -r (required)", "The RCON password"}, short: "r", long: "password", 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 host #

[View source]
def inspect(io) #

[View source]
def port #

[View source]
def rcon_password #

[View source]
def validate!(command) #