mirror of
https://github.com/boostorg/boost-tasks.git
synced 2026-02-01 20:32:14 +00:00
23 lines
524 B
PHP
Executable File
23 lines
524 B
PHP
Executable File
#!/usr/bin/php
|
|
<?php
|
|
require_once(__DIR__.'/vendor/autoload.php');
|
|
|
|
use GetOptionKit\OptionCollection;
|
|
|
|
function main($args) {
|
|
$specs = new OptionCollection;
|
|
$specs->add('no-fetch', "Don't fetch events from GitHub")
|
|
->defaultValue(false);
|
|
$options = CommandLineOptions::process($args,
|
|
'Update the submodules in the super project',
|
|
$specs);
|
|
|
|
if (!$options['no-fetch']) {
|
|
GitHubEventQueue::downloadEvents();
|
|
}
|
|
|
|
SuperProject::updateBranches();
|
|
}
|
|
|
|
main($_SERVER['argv']);
|