Method: GLI::AppSupport#commands
- Defined in:
- lib/gli/app_support.rb
#commands ⇒ Object
:nodoc:
129 130 131 132 133 134 135 136 137 |
# File 'lib/gli/app_support.rb', line 129 def commands # :nodoc: if !@commands @commands = { :help => GLI::Commands::Help.new(self), :_doc => GLI::Commands::Doc.new(self) } @commands_declaration_order ||= [] @commands_declaration_order << @commands[:help] @commands_declaration_order << @commands[:_doc] end @commands end |