mirror of
https://github.com/okdana/twigc.git
synced 2024-05-29 12:02:16 +02:00
25 lines
423 B
PHP
25 lines
423 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
/**
|
|
* This file is part of twigc.
|
|
*
|
|
* @author dana geier <dana@dana.is>
|
|
* @license MIT
|
|
*/
|
|
|
|
require_once __DIR__ . '/../src/bootstrap.php';
|
|
|
|
$verbose = false;
|
|
$verboseArgs = ['v', 'vv', 'vvv', 'verbose', 'debug'];
|
|
|
|
foreach ( $argv as $arg ) {
|
|
if ( in_array(ltrim($arg, '-'), $verboseArgs, true) ) {
|
|
$verbose = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
(new \Dana\Twigc\PharCompiler($verbose))->compile();
|
|
|