Class: HR_Deploy::Helper

Inherits:
Object
  • Object
show all
Defined in:
lib/hr_deploy/helper.rb

Instance Method Summary collapse

Instance Method Details

#show_help(args) ⇒ Object



44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/hr_deploy/helper.rb', line 44

def show_help(args)
  after_failed_parse = args.fetch(:failed_parse, false)

  if after_failed_parse
    puts 'Unknown command'
    puts
  end

  puts HELP_STRING

  exit 1 if after_failed_parse
end