Method: Application.help

Defined in:
lib/appl.rb

.helpObject



238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# File 'lib/appl.rb', line 238

def help
  fn = full_name
  puts "#{fn}  --  #{self::SUMMARY}"
  puts
  d = self::DESCRIPTION.gsub /#(\w+?)?#/ do
    case $1
      when "NAME" then fn
    end
  end
  puts d
  puts
  show_options
  if block_given? then
    puts
    yield
  end
end