module Comandante::OptParserTypes
Common Types used inside Comandante
Direct including types
Comandante::OptParser
Constants
EMPTY_ARGS = Array(String).new(size: 0, value: "")
Just in case an empty args array is needed
MAX_ARGS = 256
Default maximum number of program argument, you can however set any number in argument configuration range.
Macros
enum Comandante::OptParserTypes::OptionStyle
Available Types for Options
Members
Switch = 0
Option = 1
RepeatingSwitch = 2
RepeatingOption = 3
Methods
alias Comandante::OptParserTypes::OptionValue
Alias definition
Array(String) | Bool | Float64 | Int32 | String
alias Comandante::OptParserTypes::OptionsHash
Alias definition
Hash(String, Array(String) | Bool | Float64 | Int32 | String)
abstract class Comandante::OptParserTypes::CommandAction
inherits Reference
A base class for Command Actions
Direct known subclasses
Comandante::OptParserTypes::NullCommandAction
Methods
abstract #run(global_opts : OptionsHash, opts : OptionsHash, args : Array(String)) : Nil
abstract class Comandante::OptParserTypes::OptionAction
inherits Reference
A base class for Option Actions
Direct known subclasses
Comandante::OptParser::ColorOffAction
Comandante::OptParser::DebugAction
Comandante::OptParser::VersionAction
Comandante::OptParserTypes::NullOptionAction