struct OIJ::CLI::PrepareProblem::Flags

Overview

Extend the flags struct to include the flag

Defined in:

oij.cr

Constant Summary

DESCRIPTIONS = {} of String => String
SPECS = {"__help__" => {kind: "bool", type: "Bool", default: "false", description: {"--help, -h", "Displays help for the current command."}, short: "h", long: "help", is_required: true}, "atcoder" => {kind: "nil", type: "String", default: "nil", description: {"--atcoder, -a", "Specify atcoder problem."}, short: "a", long: "atcoder", is_required: false}, "yukicoder" => {kind: "nil", type: "Int32", default: "nil", description: {"--yukicoder, -y", "Specify yukicoder problem."}, short: "y", long: "yukicoder", is_required: false}, "codeforces" => {kind: "nil", type: "String", default: "nil", description: {"--codeforces, -c", "Specify codeforces problem."}, short: "c", long: "codeforces", is_required: false}, "next" => {kind: "bool", type: "Bool", default: "false", description: {"--next, -n", "Specify next problem."}, short: "n", long: "next", is_required: true}, "prev" => {kind: "bool", type: "Bool", default: "false", description: {"--prev, -p", "Specify previous problem."}, short: "p", long: "prev", is_required: true}, "strict" => {kind: "bool", type: "Bool", default: "false", description: {"--strict, -s", "Strict mode."}, short: "s", long: "strict", 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 atcoder : String? #

def codeforces : String? #

def inspect(io) #

[View source]
def next #

def prev #

def strict #

def validate!(command) #

def yukicoder : Int32? #