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

use SimpleSAML\Command\UnusedTranslatableStringsCommand;
use SimpleSAML\Command\UpdateTranslatableStringsCommand;
use Symfony\Component\Console\Application;

umask(000);
set_time_limit(0);

if (str_ends_with(__DIR__, '/vendor/simplesamlphp/simplesamlphp/bin')) {
    require __DIR__.'/../../../autoload.php';
} else {
    require __DIR__.'/../vendor/autoload.php';
}

$application = new Application();
$application->add(new UnusedTranslatableStringsCommand());
$application->add(new UpdateTranslatableStringsCommand());
$application->run();
