#!/usr/bin/env php
<?php declare( strict_types=1 );

if ( !is_file( __DIR__ . '/../vendor/autoload.php' ) && is_file( __DIR__ . '/../../../autoload.php' ) ) {
	// Allow use within a vendor directory, in which case we're under vendor/:org/:package
	require_once __DIR__ . '/../../../autoload.php';
} else {
	require_once __DIR__ . '/../vendor/autoload.php';
}

$cli = new Wikimedia\Minify\Cli( STDIN, STDOUT, $argv );
$cli->run();
exit( $cli->getExitCode() );
