Class: Resumer::Command::Usage

Inherits:
Commander::Command
  • Object
show all
Defined in:
lib/resumer/commands/usage.rb

Overview

Display usage info

Instance Method Summary collapse

Constructor Details

#initializeUsage

Returns a new instance of Usage.



9
10
11
12
13
# File 'lib/resumer/commands/usage.rb', line 9

def initialize
  super(:usage)
  @summary = 'Display usage info'
  @syntax = "#{Resumer::BIN} <command> [options] <args>"
end

Instance Method Details

#run(*_args) ⇒ Object



15
16
17
# File 'lib/resumer/commands/usage.rb', line 15

def run(*_args)
  say("usage: #{@syntax}")
end