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

/*
 * This file is part of PHPExifTool.
 *
 * (c) 2012 Romain Neutron <imprec@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use PHPExiftool\Tool\Command\ClassesBuilderCommand;
use PHPExiftool\Tool\Command\DumpCommand;
use Symfony\Component\Console\Application;

require __DIR__ . '/../vendor/autoload.php';

if (!class_exists('Symfony\Component\DomCrawler\Crawler')) {
    echo "You must install composer developer packages to use the commandline dev tool\n";
    exit(1);
}

$cli = new Application('PHPExiftool', '2.2');
$cli->addCommands(array(new ClassesBuilderCommand()));
$cli->addCommands(array(new DumpCommand()));

$cli->run();
