Class: MicroManager::CLI::ShowHelp

Inherits:
Object
  • Object
show all
Defined in:
lib/cli/show_help.rb

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ ShowHelp

Returns a new instance of ShowHelp.



6
7
8
# File 'lib/cli/show_help.rb', line 6

def initialize(parser)
  @parser = parser
end

Instance Method Details

#run(schedule:) ⇒ Object



10
11
12
13
14
# File 'lib/cli/show_help.rb', line 10

def run(schedule:)
  parser.banner = "Usage: just [task-description] [options]"

  parser.help
end