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

/*
 * Tools for FET — https://fetviewer.com/tools-for-fet
 * Copyright (C) 2026 FET Viewer
 * SPDX-License-Identifier: AGPL-3.0-only
 *
 * Works with FET (Free Timetabling Software) by Liviu Lalescu and Volker Dirr:
 * https://lalescu.ro/liviu/fet/ — FET is licensed under the GNU AGPL v3.
 *
 * This program comes with ABSOLUTELY NO WARRANTY. See the LICENSE file.
 */

declare(strict_types=1);

if (PHP_SAPI !== 'cli') {
  if (!headers_sent()) {
    http_response_code(404);
  }
  exit(1);
}

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

exit(\ToolsForFet\Cli::main(array_slice($argv, 1)));
