struct Advent::Flags
- Advent::Flags
- Struct
- Value
- Object
Overview
Extend the flags struct to include the flag
Defined in:
advent.cr:6advent.cr:8
advent.cr:9
Constant Summary
-
DESCRIPTIONS =
{} of String => String
-
SPECS =
{"__help__" => {type: "Bool", default: "false", description: {"--help", "Displays help for the current command."}, short: "nil", long: "help", is_required: true}, "day" => {type: "Int32", default: "1", description: {"--day, -d (default: 1)", "Which Advent of Code day to process input for"}, short: "d", long: "day", is_required: true}, "part" => {type: "Int32", default: "1", description: {"--part, -p (default: 1)", "Which part of the day to use when determining answer"}, short: "p", long: "part", is_required: true}} of String => NamedTuple(type: String, default: String, description: Tuple(String, String | ::Nil), short: String | ::Nil, long: String, is_required: Bool)