Method: Conify::Command#respond_with_help

Defined in:
lib/conify/command.rb

#respond_with_helpObject



179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# File 'lib/conify/command.rb', line 179

def respond_with_help
  create_commands_map

  header = [
    'Usage: conify COMMAND [command-specific-arguments]',
    'Type "conify COMMAND --help" for more details about each command',
    'Commands:'
  ].join("\n\n")

  commands_info = usage_info(commands)

  puts "\n#{header}"
  puts "\n#{commands_info}\n\n"
  exit(0)
end