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

require_once file_exists(__DIR__ . '/vendor/autoload.php') ?  __DIR__ . '/vendor/autoload.php' : __DIR__ . '/../../../autoload.php';

use Overtrue\PHPOpenCC\Console\ConvertCommand;
use Symfony\Component\Console\Application;

$application = new Application("PHP OpenCC by @overtrue");

$application->add(new ConvertCommand());
$application->setDefaultCommand(ConvertCommand::getDefaultName(), true);
$application->run();
