# File lib/cmdparse.rb, line 171 171: def add_command( command, default = false ) 172: raise TakesNoCommandError.new( @name ) if !has_commands? 173: @commands[command.name] = command 174: @default_command = command.name if default 175: command.super_command = self 176: command.init 177: end