#!/usr/bin/env php
<?php

if (file_exists($autoloader_path = __DIR__.'/../../../autoload.php')) {
    require_once $autoloader_path;
} elseif (file_exists($autoloader_path = __DIR__.'/../vendor/autoload.php')) {
    require_once $autoloader_path;
} else {
    echo 'You did not install the composer dependency.'.PHP_EOL.
         'Run composer install or go on '.PHP_EOL.
         'http://melody.sensiolabs.org/#btn_installation'.PHP_EOL.
         'for more information on how to install melody.'.PHP_EOL
    ;
    exit(1);
}

use SensioLabs\Melody\Console\Application;

$application = new Application();
$application->run();
