File: help_command.rb

package info (click to toggle)
ruby-oauth 0.5.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 584 kB
  • sloc: ruby: 4,070; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class OAuth::CLI
  class HelpCommand < BaseCommand
    def run
      puts <<-EOT
  Usage: oauth COMMAND [ARGS]

  Available oauth commands are:
    a, authorize  Obtain an access token and secret for a user
    q, query      Query a protected resource
    s, sign       Generate an OAuth signature

  In addition to those, there are:
    v, version    Displays the current version of the library (or --version, -v)
    h, help       Displays this help (or --help, -h)

  Tip: All commands can be run without args for specific help.


      EOT
    end
  end
end