Class: OAuth::TTY::Commands::HelpCommand

Inherits:
OAuth::TTY::Command show all
Defined in:
lib/oauth/tty/commands/help_command.rb

Instance Method Summary collapse

Methods inherited from OAuth::TTY::Command

#initialize, #required_options

Constructor Details

This class inherits a constructor from OAuth::TTY::Command

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/oauth/tty/commands/help_command.rb', line 7

def run
  puts "    Usage: oauth COMMAND [ARGS]\n\n    Available oauth commands are:\n      a, authorize  Obtain an access token and secret for a user\n      q, query      Query a protected resource\n      s, sign       Generate an OAuth signature\n\n    In addition to those, there are:\n      v, version    Displays the current version of the library (or --version, -v)\n      h, help       Displays this help (or --help, -h)\n\n    Tip: All commands can be run without args for specific help.\n\n\n  EOT\nend\n"