mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
11 lines
335 B
PHP
11 lines
335 B
PHP
<?php
|
|
|
|
declare(ticks=1);
|
|
require_once dirname(__DIR__, 4).DIRECTORY_SEPARATOR.'bootstrap.php';
|
|
use nntmux\libraries\Forking;
|
|
|
|
// Check if argument 1 is numeric, which is to limit article count.
|
|
(new Forking())->processWorkType(
|
|
'backfill', (isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? [0 => $argv[1]] : [0 => false])
|
|
);
|