You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
431 B
14 lines
431 B
#!/usr/bin/env php
|
|
<?php
|
|
|
|
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
|
|
|
|
use Overtrue\PHPOpenCC\Console\BuildCommand;
|
|
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();
|