abstract class Cli::CommandBase
Direct Known Subclasses
Defined in:
cli/command_base.cr
Constructors
Class Method Summary
Instance Method Summary
-
#__args
-
#__error!(message = nil, code = nil, help = false, indent = 2)
-
#__exit!(message = nil, error = false, code = nil, help = false, indent = 2)
-
#__help!(message = nil, error = nil, code = nil, indent = 2)
-
#__named_args
-
#__nameless_args
-
#__option_model
-
#__options
-
#__parent : Cli::CommandBase | Nil
-
#__parsed_args
-
#__rescue_parsing_error(&)
-
#__run
-
#__unparsed_args
-
#__version
-
#__version!
-
#__version?
-
#args
-
#error!(message = nil, code = nil, help = false, indent = 2)
-
#exit!(message = nil, error = false, code = nil, help = false, indent = 2)
-
#help!(message = nil, error = nil, code = nil, indent = 2)
-
#named_args
-
#nameless_args
-
#options
-
#parsed_args
-
#run
-
#unparsed_args
-
#version
-
#version!
-
#version?
Macro Summary
Constructor Detail
Class Method Detail
def self.
__help_on_parsing_error?
#
def self.
__run_with_rescue(argv)
#
def self.
__run_without_rescue(argv)
#
def self.
run(argv =
[] of ::String)
#
Instance Method Detail
def
__error!(message =
nil, code =
nil, help =
false, indent =
2)
#
def
__exit!(message =
nil, error =
false, code =
nil, help =
false, indent =
2)
#
def
__help!(message =
nil, error =
nil, code =
nil, indent =
2)
#
def
__rescue_parsing_error(&)
#
def
error!(message =
nil, code =
nil, help =
false, indent =
2)
#
def
exit!(message =
nil, error =
false, code =
nil, help =
false, indent =
2)
#
def
help!(message =
nil, error =
nil, code =
nil, indent =
2)
#
Macro Detail
macro
__define_supercommand(type)
#
macro
command_name(value)
#
macro
disable_help_on_parsing_error!
#