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

call_user_func(function() {
    require_once call_user_func(function() {
        if (is_file($file = __DIR__.'/../vendor/autoload.php')) {
            return $file;
        }
        
        if (is_file($file = __DIR__.'/../../../autoload.php')) {
            return $file;
        }

        throw new \LogicException('Could not locate autoload.php. Did you forget to install vendors using "composer install"?');
    });

    $app = new Scrutinizer\Ocular\Ocular();
    $app->run();
});
