Class: Geostats::Commands::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/geostats/commands/help.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #invoke

Constructor Details

This class inherits a constructor from Geostats::Commands::Base

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/geostats/commands/help.rb', line 8

def run
  STDERR.puts "Usage:     geostats <command> [...]"
  STDERR.puts
  STDERR.puts "Commands:  init <username> <password> [<directory>]"
  STDERR.puts "           update [all | <code>]"
  STDERR.puts "           generate [<template>]"
  STDERR.puts "           push"
  STDERR.puts "           console"
  STDERR.puts "           set [<key>] [<value>]"
end

#usageObject



4
5
6
# File 'lib/geostats/commands/help.rb', line 4

def usage
  run
end