abstract class Clim::Command
- Clim::Command
- Reference
- Object
Defined in:
clim/command.crclim/command/arguments.cr
clim/command/arguments/argument.cr
clim/command/options.cr
clim/command/options/option.cr
clim/command/sub_commands.cr
Instance Method Summary
- #alias_name : Array(String)
- #desc : String
- #help_template_str : String
- #name : String
- #names
- #usage : String
- #version : String
Macro Summary
- alias_name(*names)
- argument(name, type = String, desc = "Argument description.", default = nil, required = false)
- command(name, &block)
- desc(description)
- help(short = nil)
- help_template(&block)
- main
- option(short, long, type = String, desc = "Option description.", default = nil, required = false)
- option(short, type = String, desc = "Option description.", default = nil, required = false)
- run(&block)
- sub(name, &block)
- usage(usage)
- version(version_str, short = nil)
Instance Method Detail
Macro Detail
macro argument(name, type = String, desc = "Argument description.", default = nil, required = false)
#
macro option(short, long, type = String, desc = "Option description.", default = nil, required = false)
#