Sha256: 9b6ffac6be988d4479380083894b4444ce3f493491d3b5a210b1a669973c5caa

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

##################################################################
#                  Licensing Information                         #
#                                                                #
#  The following code is licensed, as standalone code, under     #
#  the Ruby License, unless otherwise directed within the code.  #
#                                                                #
#  For information on the license of this code when distributed  #
#  with and used in conjunction with the other modules in the    #
#  Amp project, please see the root-level LICENSE file.          #
#                                                                #
#  © Michael J. Edgar and Ari Brown, 2009-2010                   #
#                                                                #
##################################################################
Amp::Command.create('help') do |c|
  c.desc "Prints the help for the program."
  
  c.on_call do
    output = ""
    
    cmd_name = arguments.empty? ? "__default__" : arguments.first
    Amp::Help::HelpUI.print_entry(cmd_name, options)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amp-front-0.2.0 lib/amp-front/dispatch/commands/builtin/help.rb
amp-front-0.1.0 lib/amp-front/dispatch/commands/builtin/help.rb