Method: GLI::AppSupport#commands
- Defined in:
- lib/gli/app_support.rb
#commands ⇒ Object
:nodoc:
136 137 138 139 140 141 142 143 144 |
# File 'lib/gli/app_support.rb', line 136 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 |