Module: Spud::Help

Defined in:
lib/spud/help.rb

Class Method Summary collapse

Class Method Details

.print!void

This method returns an undefined value.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/spud/help.rb', line 7

def self.print!
  help = StringIO.new

  help.puts "spud #{VERSION}"
  help.puts
  help.puts 'usage:'
  help.puts '  spud [options] <task> [args]'
  help.puts
  help.puts 'options:'
  help.puts '  -h, --help     show this help dialog'
  help.puts '  -f, --files    list parsed files'
  help.puts '  -i, --inspect  show details about a task'
  help.puts '  --debug        run in debug mode'

  puts help.string
end