X-Git-Url: https://git.cweiske.de/stapibas.git/blobdiff_plain/1d71253d7c6e98fdc8b29a122d8fd8fdf8c77d43..9b28db5de5584d1b5af90037b44fbfb33ebfbbb7:/src/stapibas/Cli.php diff --git a/src/stapibas/Cli.php b/src/stapibas/Cli.php index 52c7143..40d9d17 100644 --- a/src/stapibas/Cli.php +++ b/src/stapibas/Cli.php @@ -75,6 +75,15 @@ class Cli ) { $tasks = array_flip(explode(',', $result->command->options['tasks'])); + //if an ID/url is given, only execute the matching task + if (isset($result->command->options['feed'])) { + $tasks = array('feeds' => 1); + } else if (isset($result->command->options['entry'])) { + $tasks = array('entries' => 1); + } else if (isset($result->command->options['entryurl'])) { + $tasks = array('urls' => 1); + } + if (isset($tasks['feeds'])) { $this->runFeedUpdateFeeds($deps); }