Module: DatabasePatcher::CLI
Instance Method Summary collapse
Instance Method Details
#start(argv) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/database_patcher/cli.rb', line 6 def start(argv) display_help(argv) command_name = argv[0] args = argv[1..-1] command = find_command_for(command_name) command.optparse.parse!(args) command.on_call.call(args) end |