#!/usr/bin/env php
<?php
$composerAutoload = [
    __DIR__ . '/../vendor/autoload.php',
    __DIR__ . '/../../../autoload.php',
];
$vendorPath = $binariesPath = null;
foreach ($composerAutoload as $autoload) {
    if (file_exists($autoload)) {
        require($autoload);
        $vendorPath = dirname($autoload);
        $binariesPath = $vendorPath . '/bin/';
        break;
    }
}

$cliMate = new \League\CLImate\CLImate;
$hound = new \phphound\Command($cliMate, $binariesPath, $_SERVER['argv']);
$hound->run();
