class
CliGen::App
- CliGen::App
- CliGen::CommandNode
- Reference
- Object
Overview
This serves as the default App object, that holds a copy of all flags & handles flag processing until it hands off to the user defined commands
Defined in:
cligen/app.crConstructors
Class Method Summary
-
.process(args : Array(String) = ARGV)
Serves as a convinence method for the user to call to begin processing an argument array provided by the user.
Instance Method Summary
Instance methods inherited from class CliGen::CommandNode
check!
check!,
check_for_duplicates!(flags : Array(BaseFlag))
check_for_duplicates!,
find_match(arg : String)
find_match,
process(args : Array(String))process(args : Array(Arg)) : Nil process
Constructor methods inherited from class CliGen::CommandNode
new(name : String, flags : Array(CliGen::BaseFlag), commands : Array(CliGen::CommandNode), pre_run_commands : Array(_), post_run_commands : Array(_))
new
Constructor Detail
Class Method Detail
def self.process(args : Array(String) = ARGV)
#
Serves as a convinence method for the user to call to begin processing an argument array provided by the user.
This defaults to ARGV for convinence if no arguments are passed through